# Tag Info

## New answers tagged formatting

4


1

You could use \DeclareTOCStyleEntries[...]{tocline}{figure,table} with the same options as for chapter,section,... but without the prefix toc: \DeclareTOCStyleEntries[ raggedpagenumber, linefill=\tocpageseparator, numwidth=3em, pagenumberbox=\tocpagenumberbox ]{tocline}{figure,table} Note that you can use this command for chapter,section,.....

4

Your morecomment setting is saying that comments begin with ! and end with c. Do this instead. morecomment=[l]{!} C is already defined as a comment in the fortran77 style so you shouldn't need to declare it. All of this is untested.

14

You aren’t selecting the Fortran-77 dialect in your listing. According to the language-definition manual, the c and C comments were removed for Fortran-90 and later, since otherwise CONTAINS could start a comment. The listing version of Fortran 77 does not define ! comments, which I believe your compiler is making available as an extension to Fortran-77. ...

0

Another option is to add this functionality to the .bst file. I define one simple function with the surnames of those whom I want to bold, and another function to check if a name is in the surname list. Here is the code. FUNCTION{ boldees }{ "Jones and Smith" } INTEGERS { boldptr np } % determine if a name should be bolded % simply modify the ...

8

You need nothing really special. I'd avoid all those 20pt that are too much. Just to avoid issuing \displaystyle each time, I used dcases from mathtools. The physics package redefines \div (which is not a good thing); instead of loading it just for that, use a simple definition of \Div. In order to simplify input, I defined a \pder command and also a \vect ...

3

Here are a few tips and tricks before my answer While your example is fairly minimal, I would still recommend removing packages that are not necessary for compilation. Examples: physics,babel. I would recommend steering clear of the package physics. It is somewhat infamous as a behemoth. It attempts to do too much, and does none of them particularly well. ...

3

You might find some of the environments in mathtools useful for this. In particular, dcases is like cases, but each line is in display mode, and spreadlines changes the line spacing of aligned environments. I also used aligned, from amsmath, to add more alignment points. I also took the liberty of defining a \vectorsym macro, for readability and so you can ...

3

No need to employ a cases environment. I suggest you employ an alignedat environment instead. \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{amsmath} % for 'alignedat' environment \usepackage{amssymb,physics} \begin{document} \addtolength{\jot}{5pt} \left\{ \begin{alignedat}{2} \...

3

You could do that very simply with floatrow: \documentclass{article} \usepackage{array} \usepackage[demo]{graphicx} \usepackage[export]{adjustbox}% for move images baseline to vertical center of image \usepackage{caption} \usepackage{floatrow} \begin{document} \begin{figure}[!ht] \centering% \setlength{\columnsep}{2em} \begin{floatrow}[2] \...

4

Use the subcaption package. \documentclass[10pt,a4paper]{article} \usepackage[ngerman]{babel} \usepackage{graphicx} \usepackage[left=1.00cm, right=1.00cm, top=1.00cm, bottom=1.00cm]{geometry} \usepackage{subcaption} \begin{document} \begin{figure}[htp] \centering \begin{subfigure}[t]{0.45\textwidth} \centering \...

5

You can use a [t]op-aligned (or anchored) minipage for each image; if the images are both the same size, it will line up the captions as expected: \documentclass{article} \usepackage{amsmath,graphicx} \begin{document} \begin{figure} \mbox{}\hfill \begin{minipage}[t]{0.45\textwidth} \centering \includegraphics[width=\linewidth]{example-image-a}...

1

I solved it. I used subfloats to and an extra caption for it. \begin{figure}[!tbp] \centering \subfloat[\textbf{RMSE-Auswertung}]{\includegraphics[width=0.48\textwidth]{images/RMSE.pdf}\label{fig:RMSE}} \hfill \subfloat[\textbf{Lernrate-Auswertung}]{\includegraphics[width=0.48\textwidth]{images/LR.pdf}\label{fig:LR}} \caption{\textbf{(\ref{fig:...

3

You'll have to change the formatting of the numbers to be circled: \documentclass{article} \usepackage{algorithm,algorithmic} \usepackage{circledsteps}% https://tex.stackexchange.com/q/7032/5764 \newcommand{\circlenum}[3]{\Circled{\small #1{#2}}} \algsetup{linenosize=\circlenum} \begin{document} \begin{algorithm} \caption{An algorithm} \begin{...

1

I don't think there's a difference between alignat{1} and align. Here's how I would do it: \documentclass{article} \usepackage{nccmath, mathtools} \usepackage{amssymb} \usepackage{braket} \begin{document} \begin{subequations} %\label{eq:bell_states} \noindent\centering \begin{minipage}{0.48\textwidth} \begin{...

0

If it's a network folder, you can give the absolute path with \href{run:/serverpath} or \href{run:///serverpath} For example \href{run:///192.198.1.5/data}{Network Folder} If it's a local folder, you can give the absolute path with \href{run://FolderPathOnC:Drive} For example \href{run://Users/Name/Downloads}{My Downloads Folder} Tested with Adobe ...

0

The issue was caused by a missing "%" and was fixed already in the template (see: github.com/andygrunwald/FOM-LaTeX-Template/issues/186) Old version with bug: \renewbibmacro*{cite}{% \iffieldundef{shorthand} {\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}} {\usebibmacro{cite:label}% \setunit{\printdelim{...

2

Some comments and suggestions: I wouldn't use '1', '2', etc to denote the subsection numbers in the appendix, as that will needlessly invite confusion as the sections in the main body of the document are numbered '1', '2, etc as well. Hence, I'd like to suggest that you keep the default numbering of the subsections in the appendix, viz., 'A.1', 'A.2', etc. ...

0

Do you want something how this? I have used \section*{\appendixname\, Code} with a bit of space \, (or you can put \quad) because the two words are very close to each other that they seem to be united. \documentclass[a4paper,12pt]{article} \usepackage[title,titletoc]{appendix} \begin{document} \begin{appendices} \section*{\appendixname\, Code} \end{...

12

I’m going to give some alternatives, if you don’t mind. You already got a good answer to the question of which e that is. There is a codepoint for “Euler’s constant” defined in Unicode, ℇ (U+2107), which is \Eulerconst in some packages. It’s not widely-used, and the consensus is that most fonts’ glyphs for it are ugly. On the other hand, \mathrm{e} is ...

6

Just be sure to load a Times Roman text and math font and you're all set: \textit{e}, $e$, and $\mathit{e}$ will all generate the desired glyph. If you load the newtxmath math font package, $\mathscr{e}$ may also be of interest. \documentclass{article} \usepackage{newtxtext,newtxmath} % Times Roman clone text and math font packages \begin{document} \textit{...

12

I think this is simply an "e" in a Times clone. Your image seems to have been produced with mathptmx. \documentclass[11pt]{article} \usepackage{amsmath} \usepackage{mathptmx} \begin{document} $e \equiv \lim_{n\to\infty} \biggl( 1 + \frac{1}{n} \biggr)^n = 2.7182818284590452353602874713526624977572\hdots$ \end{document} Note however that ...

Top 50 recent answers are included