Tag Info

New answers tagged

0

To summarize everything that emerged from this post, I post an answer as CW. First of all, \\ does not create a paragraph break. It simply forces a linebreak. What is the difference, you may ask. Well, it depends on the internal parameters of TeX, but a new paragraph will be indented and may have a space before it. The indentation is governed by \parindent, ...


1

Use the titlesec package. This code looks mor or less like your picture: \documentclass[12pt, a4paper]{book}% http://ctan.org/pkg/amsproc \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fourier} \usepackage{microtype} \usepackage{lipsum} \usepackage[explicit, indentafter]{titlesec}% \titleformat{\chapter}[display] ...


2

The dukedissertation class uses a very non standard way to comply with the dreaded double spacing requirement, whereas empheq assumes the method with \baselinestretch is used to modify the interline space. We can fix the issue by telling LaTeX to use the standard method when an empheq environment is concerned. \documentclass[]{dukedissertation} ...


3

An another solution: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} \int\!\sin{\overbrace{^{2k+1}}^{\text{odd}}}x\cos^n x \,dx = \int\!\overbrace{(\sin^2x)^k}^{% \substack{\text{convert to}\\\text{cosines}}} \cos^n x\overbrace{\sin x\,dx}^{\text{save for $du$}} = \int\!(1-\cos^2x)^k\cos^n ...


7

I would use a combination of things to make the output look a little better: \documentclass{article} \usepackage{mathtools} \begin{document} \begin{align*} \int \sin^{\overbrace{\scriptstyle 2k+1}^{\scriptstyle\text{odd}}}x\cos^n x \,\mathrm{d}x = \int \overbrace{(\sin^2x)^k}^{\mathclap{\text{convert to cosines}}}\cos^n x\overbrace{\sin ...


0

Thanks a lot for answering this question. By the way I am trying to add a logo in the sidebar but again I face problems with the vertical space... which does not seem to respond. If you have a idea of how to shift the logo please let me know. Thanks a lot I do \addtobeamertemplate{sidebar right}{}{ %\vspace*{-1ex}\hspace*{-25pt}% ...


2

You have a typo. The key name is every loglog axis. Regardless of the code, don't remove the % at the end of lines in the code block. You will get spurious spaces otherwise.


1

I'm glad that meanwhile (when I was occupied with my regular tasks :-)) you find a solution for your problem. My proposition require more "hand work", but it is quit simple: \documentclass[margin=2cm]{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{loglogaxis} [ xtick={2,95}, ...


0

The sidebar outer theme has a documented height option: height=⟨dimension⟩ specifies the height of the frame title rectangle. If it is set to 0pt, no frame title rectangle is created. Instead, the frame title is inserted normally into the frame. Thus, you can just provide a 0pt value for this option: \useoutertheme[right, height=0pt]{sidebar}


2

The code \documentclass[margin=1cm]{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{loglogaxis} [ log number format code/.code= { \pgfkeys{/pgf/fpu} \pgfmathparse{exp(\tick)} \pgfmathprintnumber[sci,sci ...


2

Well as the macro name implies it is a pretty-printer not the math parser. You need to do the math outside and supply the result to it. But if you do the regular TikZ parsing the numbers are too big to handle. Hence you need to turn on the fpu of TikZ do the math and turn it off. log number format code/.code={% \pgfkeys{/pgf/fpu}% ...


0

A simple code with titlesec. You can play with \titlespacing: the first argument increases the left margin, the second is vertical space before the heading,and the third vertical space after the heading. \documentclass[11pt, oneside]{book} \usepackage{showframe} \usepackage{titlesec} ...


1

The vertical spacing is controlled using \vspace*. You can set th value to your needs, negative values are also allowed, moving the text up on the page. A negative space of 105pt gives you the following output, though i cannot recommend to do that. \documentclass[11pt, oneside]{book} \usepackage{showframe,blindtext} \makeatletter ...


2

This is really impossible to answer without seeing a minimal working example (MWE), but I'm pretty sure you're dealing with the following problem: The .tex file you're compiling loads CJK which assumes the EUC-KR encoding for Korean text. Your text editor, however, automatically loads the file with UTF-8 encoding, as most modern text editors will do. If ...


0

pdflatex Using this engine, you can still adopt this solution posted by Medina (remember to set babel to English so the Table of Contents, etc, will be in English). According to this answer, however, you need the uhc font package installed in order to be able to use mj. xelatex If you're already using xelatex (or if you can switch for one document), it's ...


0

If you can switch to the memoir class the solution is as easy as use: \chapterstyle{article} Example: \documentclass[a4paper]{memoir} % some code only needed to show margin boundaries and dummy text \usepackage{xcolor} \usepackage[showframe]{geometry} \makeatletter \def\Gm@hrule{\color{blue!50}\hrule height 1pt depth\z@ width\textwidth}% ...


3

The \ThisStyle{...\SavedStyle...} syntax of the scalerel package allows precisely this to be done. In the MWE I show: text mode (row 1); textstyle and displaystyle math (row 2); scriptstyle and scriptscriptstyle (row 3); combined effect of normal math and subscripted \mycommand (row 4). \documentclass{amsart} \usepackage{scalerel} \newsavebox{\mybox} ...


1

Is this what you like? \documentclass{memoir} \usepackage{lipsum} \usepackage{xcolor,tikz} \definecolor{sectionhead}{rgb}{.16,.61,.98} \newcommand{\ruledsec}[1]{% \noindent\tikz\draw[ultra thick,sectionhead,loosely dotted] (0,0) -- + (\textwidth,0); \vskip 1em \Large\bfseries\raggedright\color{sectionhead} #1} \setsecheadstyle{\ruledsec} ...


1

You'd probably better introduce some abbreviations for avoiding such long formulas with repeated terms. The alignment can be obtained by \intertext, but there are also several improvements that can be made. \documentclass[oneside,12pt]{scrartcl} \usepackage[ngerman]{babel} \usepackage[fixamsmath,disallowspaces]{mathtools} \begin{document} \noindent ...


3

May be this? Using \intertext and all inside {align*}. I used gather in the last group since there's no clear alignment. And left no space before “mit” so it's on the left margin without being indented. \documentclass[oneside,12pt]{scrartcl} \usepackage[ngerman]{babel} %\usepackage{amsmath} \usepackage[fixamsmath,disallowspaces]{mathtools} \begin{document} ...


3

The documentation for termcal mixes the code itself with the instructions, which can sometimes be a bit confusing. In the code of the package, the macro \calprintclass is defined (this is the command you mention in your question.) So to change it (to anything) you need to use \renewcommand not \newcommand. In your case you want to eliminate it altogether, ...


2

There are many different ways to change the layout of a certain text block. To change the color of a paragraph you can enclose it in a \startcolor environment. \starttext \input ward \startcolor[orange] \input ward \stopcolor \stoptext To choose a special font for a paragraph you can use the \startfont environment which takes the same argument as the ...


3

Maybe something like the following, which uses an rcases environment (provided by the mathtools package): \documentclass{article} \usepackage{mathtools} \begin{document} \begin{equation} \mu(E)= \begin{rcases} \sup\{\mu(K)\} \colon \text{$K$ is a compact subset of $E$}\\ \inf\{\mu(U)\} \colon \text{$U$ is an open set containing $E$} \end{rcases} \tag{$*$} ...


2

buf_size is essentially the maximum size of a single input line although it is also used for some macro expansion, so it is the line after tex macros expanded. So either (most likely) your input document has no newlines and is all on one line or you have a very big tex expansion loop, or an infinite expansion loop. You can increase the value in texmf.cnf ...


2

This approach takes two separate LaTeX compilations. First, compile your test document in the normal way. For example, let this be testfile.tex: \documentclass{article} \usepackage{graphicx} \begin{document} \centering \scalebox{35}{A}\clearpage \scalebox{35}{B}\clearpage \scalebox{35}{C}\clearpage \end{document} Compile it, producing testfile.pdf. ...


3

Package siunitx comes with support for columns with numbers via the column specifier S: \documentclass{report} \usepackage{caption} \usepackage{booktabs} \usepackage{siunitx} \begin{document} \begin{table} \centering \caption{Koeffizienten und Exponenten} \label{tab_koeff_T_ps} \begin{tabular}{ S[table-format=2.0] S[table-format=1.0] ...


0

I think that using \left and \right is the best way to go, as function arguments might as well grow taller than usual. But it is a matter of taste. For myself, I have defined the following command: \newcommand{\of}[1]{\!\left({#1}\right)} This gives me nice spacing for function arguments while preserving \left's and \right's functionality, and it also ...


3

The overlay option to the tikzpicture makes the picture to occupy no space and hence text flows over the picture. FYI, remember picture allows you to use the page anchors like current page.north east. Further, you have to use \columnwidth and \textheight instead of \paperwidth and \paperheight. Solution is to remove overlay option. ...


5

The following work for me. Do I miss anything? \documentclass{beamer} \usepackage{amsmath} \begin{document} \begin{frame} \begin{itemize} \item Riemann Sum \item Trapezoidal Rule \item Simpson's 1/3 Rule $\smash{\left.\rule{0pt}{.5\dimexpr3\baselineskip+2\itemsep+2\parskip}\right\} \text{\parbox{2in}{Newton Cotes formulae of different ...


0

For the benefit of others who may have this problem but not have \appendixpage anywhere in their code, there are (at least?) two ways the Appendix page can be enabled: Via the \appendixpage command, as mentioned above. Remove this line from your code and the Appendix page will disappear. The page option of the appendix package. ...


5

I provide \marquis[<scale factor>]{<width>}{text}, where the scale factor is applied at the end. The width is the (pre-scaled) text width, not counting the parens. If you are unhappy with the width of the parens, let me know. One could also include all the \vfilling inside the macro, if desired. \documentclass[landscape]{article} ...


2

\documentclass[12pt]{standalone} \begin{document} $\left\{\begin{tabular}{l} line \\ one more line \end{tabular}\right\}$ \end{document} Of course, you can use any kind of brackets.


2

I think there is no need to print the section number twice. Hence I would change the third argument of the \titleformat command to {\llap{\colorbox{black}{\makebox[3em][r]{\textcolor{white}{\thesection}}}\hspace{1em}}} and use {0pt} as fourth argument to align the section title with the text body. Code: ...


0

Use this: \renewcommand*{\thesection}{\textcolor{white}{\Roman{section}}} \documentclass[12pt,letterpaper,twoside]{article} \usepackage[margin=1in]{geometry} \usepackage[explicit]{titlesec} \usepackage{tikz} \usepackage{lipsum} \linespread{1.3} \titleformat{\section} {\normalfont\Large\bfseries} {\llap{\colorbox{black}{\makebox[3em][r] ...


2

Two more differences between \mathit{} and \textit{} are: \textit{} is allowed in both math and regular environment but \mathit{} is allowed only in math environment; The \textit command provides a regular environment even if it is wrapped by a math environment. Consequently: $\textit{text1^{text2}}$ gives an error, but $\mathit{text1^{text2}}$ is valid. ...


4

i'd suggest using \emph{...}, which will switch back and forth between italic and upright depending on the context. although italic is suitable here, in an italic context, this term would "disappear" into the background. some reputable publications set photo captions in italic as a matter of course, and there, species names are set upright for contrast. ...


1

There are some BibTex utilities on CTAN: https://www.ctan.org/tex-archive/biblio/bibtex/utils The following two sound like they will do exactly what you asked for: bibtool: https://www.ctan.org/tex-archive/biblio/bibtex/utils/bibtool bibclean: https://www.ctan.org/tex-archive/biblio/bibtex/utils/bibclean


4

Simply use the \textit{} tag. \documentclass{article} \usepackage{longtable} \usepackage{caption} \begin{document} \begin{longtable}{rrllr} \caption*{Table 4: De Novo SNPs Identified in Lab-Adapted \textit{C. remanei}}\\ \hline & bp & ref & alt & af \\ \hline 1 & 1077553 & A & G & 0.002184 \\ 2 & 3402873 ...


0

Here I use a macro approach, \connect{text}{lines}, where lines is the multiple of baselineskip to the connecting line. It can be a non-integer if there are added vertical spaces to contend with (e.g., \topskip and such). Because the decoration is employed using the tabto package, the \connect{}{} macro can be issued at any place on the starting line of ...


3

tikzmark could be one option: \documentclass{article} \usepackage{lipsum} \usepackage{tikz} \usetikzlibrary{tikzmark} \begin{document} \begin{description} \item[\tikzmark{a}Blabla text here:] \lipsum[1] \item[\tikzmark{b}Blabla text here:] \lipsum[1] \end{description} \tikz[remember picture,<->] \draw[overlay] ([yshift=1ex]pic cs:a) --++(-0.5,0) |- ...


3

You can define a style like \newcommand{\dotsec}[1]{% \Large\raggedright\sffamily\bfseries #1.} and then declare \setsecheadstyle{\dotsec} MWE: \documentclass{memoir} \usepackage{lipsum} \setsecnumformat{} \def\sectionmark#1{\markboth{#1}{#1}} \setaftersecskip{-1em} \newcommand{\dotsec}[1]{% \Large\raggedright\sffamily\bfseries #1.} ...


2

This removes the (huge) space above the chapter title as well as the chapter leadin for appendix chapters (i.e. the Appendix A stuff) It requires the output of the appendix number however. I will add this after the next edit. \documentclass{book} \usepackage{xpatch} \usepackage[toc]{appendix} \makeatletter \xapptocmd{\appendix}{% ...


2

Here a complete code, thanks to Christian Hupfer \documentclass{book} \usepackage[titletoc]{appendix} \begin{document} \chapter{chapter 1 title} text \chapter{chapter 2 title} \appendix \chapter*{Appendix chapter title 1} \stepcounter{chapter} \section{title 1} text \begin{figure}[hbp] \centering image \caption{Appendix} \end{figure} \chapter*{Appendix ...


12

This is a problem that shows up also in different situations. Consider \documentclass{article} \usepackage{amsmath} \begin{document} \[ \sqrt{\sin x}\sqrt{\cos x} \] \end{document} gives which is horrible. If we correct the definitions performed in amsopn.sty in the following way, \documentclass{article} \usepackage{amsmath} ...


15

It is because you have i in sin and its height is different than that of cos. If you interchange sin and cos, every thing is normal. To avoid this, you may add \vphantom{i} in the numerator or, better, use \biggl and \biggr pair instead of \left and \right. For more details on these \big family of delimiters, please refer to amsmath documentation (texdoc ...


4

You can redefine the \thesubpart \renewcommand{\thesubpart}{(\roman{subpart})} The dot after the label can be removed by \renewcommand{\subpartlabel}{\thesubpart} %% to remove the dot Code: \documentclass{exam} \renewcommand{\thesubpart}{(\roman{subpart})} \renewcommand{\subpartlabel}{\thesubpart} %% to remove the dot \begin{document} ...


4

I use an adaptation of my titlecaps package, normally used for capitalizing the first letter of each word, given a string of words (with user-specified exceptions). Therefore, instead of capping words, I leave them unchanged. However, I use the code that searches for the user-specified exceptions to both place a rule in the left margin and to change the ...


1

Just use figure not table \documentclass{article} \usepackage[demo]{graphicx} \usepackage{tabularx} \begin{document} \begin{figure} \begin{tabularx}{\textwidth}{c X c } \textbf{GentleBoost} & & \textbf{Baseline} \\ \noalign{\bigskip} \includegraphics[width=1.25cm]{singlematrix_g1} & & ...


1

Don't use afigure environment, but rather \captionof, defined in the caption package. Here is a fragment of code: \begin{table} \centering \captionof{figure}{Confusion matrices: Single 29-class model} \label{Figure 5} \begin{tabularx}{\textwidth}{c X c } \textbf{GentleBoost} & & \textbf{Baseline} \\ \noalign{\smallskip}\\ ...


1

I had to reduce the image size, but there you are: % arara: pdflatex \documentclass{article} \usepackage[demo]{graphicx} \usepackage{tabularx} \usepackage{caption} \begin{document} \begin{table} \begin{tabularx}{\textwidth}{c X c } \textbf{GentleBoost} & & \textbf{Baseline} \\ \noalign{\bigskip} ...



Top 50 recent answers are included