Above point in latex - latex

I would like to know how to make a point above a symbol (ie : αΊ‹)
I tried \overset{.}{x}, but the point is very small...
Can you help me ?
Thanks

Just to write down one answer, elaborating a bit the source cited in the comments, and to add the following minimal codes.
\documentclass{article}
\begin{document}
$\dot{x}$
$\ddot{x}$
\end{document}
One dot (\dot) and two dots (\ddot) work in math mode as above. Three dots (\dddot) and four dots (\ddddot) the same but they require the package amsmath:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
$\dddot{x}$
$\ddddot{x}$
\end{document}
Instead in text mode, the package called stackengine may help:
\documentclass{article}
\usepackage{stackengine}
\begin{document}
\stackon[1pt]{x}{.}
\end{document}

Related

How to center a line in a verbatim LATEX?

I have the following code:
\begin{verbatim}
{app_id:X[X]YY}
\end{verbatim}
This verbatim box only contains one line. I simply want to center that only line. How can I do it? \centerline doesn't work inside verbatim. Thank you so much for your help!
Sorted out thanks to this source:
\documentclass{article}
\usepackage{fancyvrb}
\begin{document}
\begin{center}
\begin{BVerbatim}
{app_id:X[X]YY}
\end{BVerbatim}
\end{center}
\end{document}
You need the package fancyvrb to implement this solution.

latex - Remove pale blu box around image-link only to a specific position

I like to make a question on the hyperref package of Latex. I write reports with the company's logo and I would like to add an implicit link to the official company's website, so as that if someone click on this logo can open the official web page. The problem is that this generates a bad pale blue box that is particularly ugly, therefore I would like to remove it.
I was able to remove all the box on the external link by changing the color on the specification (and setting white, perhaps there is also a way to remove) but I am trying to change only on this specific link and not all the others present other parts of the document.
Below the portion of latex code:
\documentclass[11pt]{article}
\usepackage[italian]{babel}
\usepackage{hyperref}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\begin{document}
\begin{figure}[h!]
\vspace{-1 cm}
\flushleft\hspace{-1.5 cm}
\href{https://www.link.com/}{\includegraphics[height=1.5cm, keepaspectratio]{LOGO1.jpg}}
%\caption{Caption}\label{fig:logo}
\end{figure}
\end{document}
Do somebody knows a special tricks for doing this? Thank you in advance for any help.
You can change the hyperref setup locally:
\documentclass[11pt]{article}
\usepackage[italian]{babel}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\begin{document}
\begin{figure}[h!]
\vspace{-1 cm}
\flushleft\hspace{-1.5 cm}
{\hypersetup{hidelinks}\href{https://www.link.com/}{\includegraphics[height=1.5cm, keepaspectratio]{example-image-duck}}}
%\caption{Caption}\label{fig:logo}
\end{figure}
\end{document}

Changing Margin in LaTeX

I'm new to LaTex and I wanted to know how I can change the Margins of my scrreport so that the chapter title, text and basically everythin starts a bit higher and ends a bit lower. In my opinion there is too much empty space before anything starts.
If I use this simple example:
\documentclass[12pt,a4paper,twoside]{scrreport}
\usepackage{blindtext}
\begin{document}
\chapter{First Chapter}
\blindtext
\end{document}
I think the margins from top and bottom are too big. So i want everything to move up a little bit.
Thanks!
Method 1:
Choose one of the predefined layouts. You'll find a list of available options in the koma script documentation.
\documentclass[12pt,a4paper,twoside,DIV=15]{scrreport}
\usepackage{blindtext}
\begin{document}
\chapter{First Chapter}
\blinddocument
\end{document}
Method 2:
Setting up the text area manually. You should be really sure that you know what you are doing to get an aesthetically pleasant result.
\documentclass[12pt,a4paper,twoside]{scrreport}
\areaset[current]{168.00mm}{250mm}
\usepackage{blindtext}
\begin{document}
\chapter{First Chapter}
\blinddocument
\end{document}

LaTeX two-column layout does not keep text between borders

I am using the \twocolumn tag to use the two-column layout in LaTeX. The problem is that this does not work properly and the text seems not to be fixed between the borders. Not sure if that minimal example helps, but at least you can see my includes and the text with which it happens.
\documentclass[12pt,a4paper, abstracton]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[backend=biber, sorting=none]{biblatex}
\usepackage{hyperref}
\usepackage[hyphenbreaks]{breakurl}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\begin{document}
\twocolumn
\section{Introduction}
Glutamate carboxypeptidase II (GCPII), N-acetyl-L-aspartyl-L-glutamate peptidase I (NAALADase I), NAAG peptidase or prostate-specific membrane antigen (PSMA) \dots
\end{document}
Screenshot of left column in PDF that shows the problem
Why does LaTeX write from the first column into the second column and how can I fix that? I would like to avoid change each line separately, where that happens. I am looking for a global solution.
Since the workarounds of the accepted answer were not satisfactory to me, I kept searching and found a more adequate and fast workaround, adding to my preamble the following:
\setlength{\emergencystretch}{3em}
The length 3em can be changed as needed, just keep it as low as possible in order to preserve optimal appearance.
More details here.
Latex has trouble finding a suitable break point because words with multiple capital letters are normally assumed to be acronyms which should not be hyphenated.
Possible workarounds:
force a line break with \linebreak before the word. This might result in undesirable large spaces in the line, especially in your situation in with only a single white space in the line
tell latex where possible break points are with long\-word (I don't know if there are any possible hyphenation points in NAALADase). This can also be globally for the whole document with \hyphenation{long-word} in your preamble
rephrase the sentence
use another layout. Very short lines combined with very long and unbreakable words is a tough combination
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[backend=biber, sorting=none]{biblatex}
\usepackage{hyperref}
\usepackage[hyphenbreaks]{breakurl}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\begin{document}
\twocolumn
\section{Introduction}
Glutamate carboxypeptidase II (GCPII), N-acetyl-L-aspartyl-L-glutamate peptidase I \linebreak (NAALADase I), NAAG peptidase or prostate-specific membrane antigen (PSMA) \dots
\end{document}

How to disable numbering in latex?

I am new to latex and I wrote the below tex code on Texmaker editor.
What I want to do is to add the "University" section without any numbering preceeding it and to be centered horizontally, because when I run the code I find that the word "University" is displayed but it is preceeded by a number and I do not want to display any number preceeding that word.
code:
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{kpfonts}
\author{Anan}
\pagestyle{plain}
\begin{document}
\section{University}
\end{document}
\section*{\centering University}
% * removes numbering for _this_ \section instance,
% \centering within environment centres the title.
Note however, that this is a local solution, and that it's better practice (and easier for you to make later document-global changes) to re-define the \section, \subsection, ... environments using the titlesec package, as is described well in Alan Munn:s answer in the following tex.stackexchange thread:
https://tex.stackexchange.com/questions/8546/section-heading-centering-problem
All you have to do is to edit your line 9:
\section{University}
this way:
\section*{\centering University}
since the command \section* produces unnumbered sections.
Further, if you want to to include an unnumbered section to your table of contents, you can add
\addcontentsline{toc}{section}{University}
(this time without \centering) just after. The resulting code:
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{kpfonts}
\author{Anan}
\pagestyle{plain}
\begin{document}
\tableofcontents
\section*{\centering University}
\addcontentsline{toc}{section}{University}
Text.
\end{document}

Resources