# Tag Info

0

As far as I know standalone does not preserve counter values, it just glues the documents together (with some precautions of course to due packages,\begin{document}...\end{document} etc.) A special environment would not help here, since LaTeX counters are not group safe. The package xassoccnt provides the \BackupCounterValues{section,...} command,that ...

1

Well, the problem with your code is to locate, what is your problem and so which parts of your code are needed to show the problem and which parts are not neccessary. Because I see that bringing the bibliography into the TOC as numbered chapter I concentrated on this problem. If you want to correct the header and footer of the first page of each chapter, ...

1

The package biblatex offers the macro \defbibheading in order to modify the way the heading of a bibliography is built. So, if you include these two lines just after loading the package biblatex, you will get what you want: \defbibheading{bibliography}[\bibname]{% \markboth{#1}{#1}} With this line you can delete the line where you call \markboth in ...

1

\printbibliography has an option (heading=bibnumbered) which makes the bibliography to be treated like a numbered chapter. So the font etc. is all equal to an ordinary chapter. The only tricky thing was to insert the rule below the chapter title which you manually added after the chapter. So simplify this, I added it to the titleformat. ...

4

Well, class moderncv changed a lot and that is the reason, why it was divided into several files. The main files are moderncv.cls, moderncvbodyX.sty, moderncvheaderX.sty and moderncvfootX.sty. They define the cv and the letter depending of the used style and colour. X can be a roman number between i and v, depending if it is body, header od foot. ...

0

An experimental implementation of hz for plain TeX is available at http://ctan.org/tex-archive/systems/tex-extensions/clasen.

5

Here is a suggestion using scrlayer to define an layer page style for these pages: \usepackage{scrlayer} \DeclareNewLayer[ foreground, %textarea,% use only the textarea contents={% \parbox[b][\layerheight][c]{\layerwidth} {\centering The space above and below the message intentionally is left blank.}% } ...

1

Well, I think there is not so much space you think. To visualise this I added option showframe to the call of geometry. If you now add some more words to your \cvcomputer the result looks very different (without changings of the layout!). If you insist in changing the layout you need to define a new command, for example \mycvcomputer. Then you can ...

3

As mentioned in some of the comments, the text editor you use and its configuration are crucial in making text readable or alienating. The stuff you can act on: Font. In my opinion, fixed-width fonts give the best results because the letters are evenly spaced across all lines, which makes it easier on the eyes (there is some kind of vertical symmetry), and ...

1


1

For the second question you might set the hintscolumnwidth(in your document, just after the documentclass): \setlength{\hintscolumnwidth}{0.175\textwidth} to something you think fits better. For example 4cm: \setlength{\hintscolumnwidth}{4cm}

0

\documentclass{article} \usepackage{amsmath} \begin{document} \begin{verbatim} if (some condition) P=P+($W_i*((W-P)/W_i$))\\ end \end{verbatim} \begin{align*} P &= P + W_{i}*((W-P)/W_{i})\\ P &= P + \frac{W_{i}*(W-P)}{W_{i}}\\ \end{align*} \end{document}

2

In case that tocloft.sty is not a must, I can offer a solution with titletoc.sty. I think the interface is cleaner. There is also a solution at the end how to get rid of the additional vertical space in LOF. \documentclass[12pt,a4paper,draft,openany]{book} % For french \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[french]{babel} % For ...

3

By default tocloft can't hook into ToCs that are made by other packages, however, it's possible to use \newlistof{...} to redefine the \lstoflistings -- unfortunately, this requires knowledge of the counter being used for listings (its name is lstlisting) and \newlistof... tries to define a new counter for this -- this must fail (and is a design flaw of ...

1

You can redefine \sectionlinesformat (needs KOMA-Script Version 3.19 or newer) and \subsectionformat. \documentclass[a5paper]{scrbook}[2015/10/03] \usepackage{xcolor,soul} \sethlcolor{black} \makeatletter \renewcommand\sectionlinesformat[4]{% \ifstr{#1}{subsection}% only subsections should be changed {\@hangfrom{\hskip#2 #3}{\hl{#4}}}% subsection ...

18

KOMA-Script supports several ways to set the font size. First of all, if you want fontsize=<value> it tries to load a font size definition file \@fontsizefilebase<value>.clo. If this is not found, it tries \@fontsizefilebase<value>pt.clo. If this is not found, it tries size<adapted value>.clo. <adapted value> is the font size in pt but with ...

14

KOMA has two different systems to setup the font sizes: A (small) number of fontsize options (8pt, 9pt, 10pt, 11pt, 12pt, 14pt 17pt, 20pt) load a scrsizeXX.clo (from KOMA) or (if found) sizeXX.clo (from the extsize package) where designated fontsizes are declared. You can add more options to this list by writing a suitable sizeXX.clo or scrsizeXX.clo. In ...

1

In relation to the last two examples, the units should be shown in square brackets, not parenthesis. This is part of the conventions used in the SI and it was discussed in other articles like Unit column in table with square brackets and siunitx.

1

Here, using the header mechanism of fancyhdr. For some reason, the header tended to push down text, so I added a corrective \vspace in the header. \documentclass{beamer} \usepackage{lipsum} \usepackage{fancyhdr} \fancyhf{} \pagestyle{fancy} \renewcommand\headrulewidth{0pt} \fancyhead[R]{$\boxed{E=mc^2}$\vspace{-2\baselineskip}} \begin{document} ...

0

The example you showed has unbalanced braces and . Generally, if you want to to type multiline maths, it is not sufficient to separate the lines with blank line as you do in ordinary text. You need to use special environments like align, gather, split, aligned, gathered etc. The new lines / rows are signalled with \\ instead of blank lines (like you do in ... 2 algorithm2e's \caption has the following format: \AlCapSty{\AlCapFnt Algorithm 1:}\AlCapNameSty{\AlCapNameFnt my algorithm} Taken from the "change log": By default, \AlCapSty is \textbf and \AlCapFnt is nothing. \AlCapNameSty keep text as it is, and \AlCapNameFnt do nothing also. You can redefine \AlCapFnt and \AlCapNameFnt by giving macro to ... 1 I propose this variant: \documentclass{book} \usepackage[explicit]{titlesec} \usepackage{graphicx} \usepackage[tracking=true]{microtype} \usepackage{lipsum}% just to generate text for the example \titleformat{\chapter}[block] {\SetTracking[no ligatures = {f}]{encoding = *}{40}}% ... 1 Something like this? Obviously you may wish to tweak the sizing etc. I've assumed that you may have a double-digit number of chapter and that it would be good for the line and title on the right to occupy the same width regardless. If you have fewer than 10 chapters, you might consider changing 99 to 9 in the code which calculates the relevant widths. ... 1 Just add these lines to your preamble: \DefineBibliographyStrings{english}{% bibliography = {Bibliography},% references= {References},% } or whatever names you want. If you don't want a title for your bibliography, to prevent any side effect that might result from redefining these strings as empty strings, it would be better to use the optional ... 1 Working from one of your attempts, and adding the following: bm package for a bolder < symbol conditionals for both p<0.01 and p<0.05 gives a final document of: \documentclass{article} \usepackage{pgfplotstable,tabularx,booktabs,bm} \begin{document} \noindent% \pgfplotstabletypeset[columns={var,p}, every head row/.style={before ... 1 Change the \caption command line to \caption{\color{blue} \textbf{\textit{Unnumbered lines}}} and compile you will get: 3 The simplest is probably to load the empheq package, which defines the eponymous environment, and use the left = key. Note you don't have to load amsmath in this case, since it loads mathtools, which itself loads the former. I added a second solution, if you want to put\Omega:in front of only the first two equations, based on blkarray. ... 3 You need align instead of equation and than repeat aligned ... \documentclass{article} \usepackage{mathtools} \usepackage[active,displaymath,tightpage]{preview}% <-- for showing only equations \setlength\PreviewBorder{1em} \begin{document} \begin{align*} \Omega :&\ \begin{aligned} \dot x & = ... 2 use \left. \begin{aligned}.....\end{aligned}\right. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} \Omega : \left. \begin{aligned} \dot x &= \omega(b) \\ p &= \sigma(z)\\ m &= \xi(k)\\ q &= \dot {\partial L}{\partial q} \end{aligned} \right. \end{equation*} \end{document} 2 The macro \cftsetindents{<X>}{<left margin>}{<title indent>} is what you need, where <X> is a sectioning unit name. In all cases, I have set the left indent to 0pt, and the title indent to 4em. I also set \cftdotsep to make the dots closer, as per the OP's example. Finally I use \cftsetpnumwidth{1em} to reduce the space between ... 3 Full credit to Gonzolo's Code. This is just a cleaner (in my opinion) way of obtaining the same effect. MWE: \documentclass[10pt,english,compress]{beamer} \usepackage{tikz} \usetikzlibrary{shapes,calc} %My predefined color \definecolor{myblue}{rgb}{0.1,0.15,0.7} %Set color for Annotations \colorlet{annotcol}{myblue!80!black} %Store coordinates of ... 2 \linebreak stretches the horizontal space too much, leading to this weird void spacings in between. Use empty lines or a \par instead. I don't recommend the usage of \underline{...} here and the whole setup should be done in a tabular etc rather than inline. \documentclass{article} \usepackage[spanish]{babel} \begin{document} \section{Modelo ... 2 By default, \linebreak ends the current line but does not create a new paragraph. The lines of paragraphs are justified, so the word spacing is stretched to make the lines filling the text width. You can either replace the \linebreak command by \par or simply add a blank line between each of the current lines. You can also create a list or a table. It ... 4 First things first: An algorithm most probabilly will never cover all use cases at once. A good rule of thumb is to assume that on average a LaTeX document will reach 90% of the final quality without any direct intervention. That said, inserting a \linebreak here and there should not be the end of the world, i.e. \begin{defn} The double integral offon ... 3 I propose to improve the table using ltablex, which extends longtable to tabularx environments. Also, I don't use any vertical rules, and replace most horizontal rules with vertical spacing, with the booktabs package. The last two columns are simple c columns – the makecell package allows for line breaks in such cells: \documentclass{article} ... 3 Here, I use \raggedright in the first 3 columns to eliminate the excess interword space that comes from flush alignment. To apply it to a whole column, I use the specification \begin{longtable}{|>{\raggedright}m{33.19mm}|>{\raggedright}m{43.51mm}| >{\raggedright}m{39.54mm}|m{10.96mm}|m{9.11mm}|} which adds the macro \raggedright as the first ... -1 \documentclass{article} \usepackage{amsmath} \usepackage{amsthm} \usepackage{mdframed} \theoremstyle{definition} \newtheorem{defn}{Definition} \surroundwithmdframed[leftmargin=-10pt,rightmargin=20pt]{defn} \begin{document} \begin{defn} The double integral off$on$R$, denoted as$\iint_R f(x,y) \, \operatorname{d}\!A\$ \end{defn} \end{document} Same code ...

1

The \real macro seems to need arithmetics desperately, i.e. use 1*\real{19.95} etc. But it will be truncated anyway! \documentclass{article} \usepackage{siunitx} \usepackage{numprint} \usepackage{calc} \newcounter{foo} \begin{document} \addtocounter{foo}{5*\real{1.7}} \thefoo \end{document} Related: Is there a counter or variable that can be used ...

3

This is some reuse of two different codes I wrote a while ago (and which reminds me the plan to make a package out of it ;-)) (See Redefining \listoffigures and \listoftables as tables and Chapter style for a book of complied articles for the extended versions of the 'old' codes) I've defined an \authortableofcontents command and redefined \chapter ...

2

You can use named colors and change them in the document: \documentclass{article} \usepackage{xcolor} \colorlet{mylinkcolor}{red!80!black} \colorlet{myurlcolor}{green!50!black} \colorlet{mysectioncolor}{blue!50!black} \usepackage{hyperref} \usepackage{bookmark} \hypersetup{ colorlinks=true, linkcolor=mylinkcolor, urlcolor=myurlcolor, ...

3

You can also use \texorpdfstring from hyperref as the problem is (generally speaking) based on the use of formatting commands while harvesting the meta data. That way you prevent that \alert gets ever in touch with pdf-specific procedures. The compiler usually don't likes to see anything but plain text there -- especially with TikZ commands it becomes really ...

3

If \title is defined after \begin{document} but before \maketitle, the problem is solved. \documentclass{beamer} \usepackage[utf8]{inputenc} \usetheme{m}%\usetheme{m}%-->problem \usepackage{tikz} \usetikzlibrary{arrows,shapes} \begin{document} \author{} \title{Hello \protect\alert{World}!} \begin{frame} \titlepage \end{frame} \end{document} ...

4

You can call \hypersetup{hidelinks} in the "before" part of \titleformat, as this will only affect the section title locally: \documentclass{article} \usepackage{fontspec} \usepackage{xcolor} \usepackage{hyperref} \usepackage{bookmark} \hypersetup{ colorlinks=true, linkcolor=red!80!black, urlcolor=green!50!black, hyperfootnotes=false, ...

2

If you have the code in an external file you can use something like \lstinputlisting[language=awk]{yourcode.awk} You can still modify the aspect of your listing preceding it with \lstset{% extendedchars=true,% basicstyle=\footnotesize\ttfamily,% keywordstyle=\color{Brown}\bfseries,% commentstyle=\color{Blue}\sffamily,% showstringspaces=false,% ...

1

Change the beginning of the frame to: \begin{frame}[fragile] \fontencoding{T1}\selectfont \begin{lstlisting} If you have to do this for many frames, you can alternatively add these lines to your preamble: \usepackage{etoolbox} \AtBeginEnvironment{lstlisting}{\fontencoding{T1}\selectfont} Alternatively, you can compile with xelatex, loading the fontspec ...

2

\documentclass{article} \usepackage{titletoc} \titlecontents{section}[2.3em] {} {\bfseries\contentslabel[\thecontentslabel.0]{2em}\MakeUppercase} {\hspace*{-2.3em}\bfseries\MakeUppercase} {\titlerule*[1pc]{.}\contentspage} \titlecontents{subsection}[4.6em] {} {\bfseries\contentslabel{2em}} {\hspace*{-2.3em}\bfseries} ...

0

I'm not entirely sure what your indentation problem was, but I guess this might be what you were aiming for...! \documentclass[a4paper, numbers=noenddot]{scrartcl} \usepackage{tocloft} \usepackage[tocflat]{tocstyle} % Formatting of the TOC \begin{document} \tableofcontents \newpage \section*{tables} \addcontentsline{toc}{section}{tables} ...

0

Like this: \numberofauthors{5} \author{ \alignauthor Aba-Sah Dadzie\\ \affaddr{KMi, The Open University}\\ \affaddr{Milton Keynes, UK}\\ \email{aba-sah.dadzie @open.ac.uk} \alignauthor Gandalf Buscher, \mbox{Frank Bensberg} \\ % names \affaddr{Osnabr\"uck University of Applied Science, Germany} \\ % ...

0

Here another soultion using a simple list as the standard abstract environment does. The solution is independent of the choice of the class and it should only be used in onecolumn settings (which considering your design guidelines is the use case anyways). \documentclass{article} \usepackage{microtype} \usepackage[margin=3cm]{geometry} \usepackage{lipsum} ...

0

Another solution is to use the changepage package : \documentclass{article} \usepackage[left=3cm,right=3cm,top=4cm,bottom=3cm]{geometry} \usepackage{lipsum} \usepackage{changepage} \title{Discovery if neutron by James Chadwick} \author{Blah Blah} \begin{document} \maketitle \begingroup \centering\small \textbf{Abstract}\par\medskip ...

Top 50 recent answers are included