Tag Info

1

This is a hack and not guaranteed. As jon mentioned in comments, this is not really supported. \documentclass[11pt,a4paper]{moderncv} \moderncvstyle{classic} \moderncvcolor{blue} \usepackage[english,ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage[ babel, german=quotes ]{csquotes} \AfterPreamble{\hypersetup{ colorlinks=true, linkcolor=gray, ...

6

The following code shows a comparisson between the current code and one produced using booktabs and siunitx: \documentclass[12pt,oneside,a4paper,fleqn]{report} \usepackage{float} \usepackage{booktabs} \usepackage{siunitx} \usepackage{slashbox} \begin{document} \begin{table}[H] \centering \begin{tabular}{|l|lll|} \hline \backslashbox{$f_i$}{$c_j$} ...

2

I don't know whether this is a good idea. Why having two diffrent formats for one same object? On the other hand, having the number in italics but the brackets in normal round font looks unpleasing. In any case, here's how you can do it: simply redefine \@cite (I also used italics for eventual anotations, but if that is not required, replace ...

0

Using math-mode characters in the title without the necessary environment can lead to 4 head-scratching errors. Underscores are to be written \_ if used outside of math mode.

1

Another way to achieve this is as follows: \usepackage[maxnames=6,minnames=3]{biblatex} \DefineBibliographyStrings{english}{% andothers = {\em et\addabbrvspace al\adddot} } You actually have control over the whole text and its styling, and you can control for different languages.

4

You can have what you want with the numberless key. I'm not sure whether you want unnumbered chapters to be in the table of contents; the below code does it, but it's easy to undo it if you don't want. Just use: \titleformat{\chapter}[display] {\normalfont\huge\bfseries\filcenter}{\chaptertitlename\ \thechapter}{20pt}{} ...

3

You can easily do it with align* and \intertext, but the result shows that you shouldn't: the apparent misalignment will look very odd to your readers. \documentclass{article} \usepackage{amsmath,amssymb} \begin{document} \begin{align*} \Xi_c=(0.136,\ 0.307,\ 0.057^+\ &||\ 0.194^-,\ 0.148,\ 0. 087, 0.074) \ \text{ and }\ \aleph_c=[\varnothing]. \\ ...

3

I assume you're talking about proof as defined by amsthm. The command \itshape is hardwired in the environment's definition. I suggest patching it so it uses a “generic” command that you can redefine at will: \usepackage{amsthm} \usepackage{xpatch} \xpatchcmd{\proof}{\itshape}{\normalfont\proofnameformat}{}{} \newcommand{\proofnameformat}{} % add nothing ...

5

A solution which doesn't require extra spacing: \^{}. (\textasciicircum works too.) \documentclass{article} \begin{document} We use \^{}' over a symbol to denote \end{document}

5

Add some spacing, a thin space could be what you want: \documentclass{article} \begin{document} We use $\,\hat{}\,$' over a symbol to denote \end{document}

3

Just add the command \noindent in to your macro. % arara: pdflatex \documentclass[a4paper]{article} \usepackage{geometry} \usepackage[T1]{fontenc} \usepackage{lmodern} % load this whith [T1]{fontenc} \usepackage{xcolor} \definecolor{mygrey}{gray}{0.75} \pagestyle{empty} ...

3


1

1

You can locally redefine the background template to include the information; something along these lines (I used two side-by-side \parboxes for the logo and the name of the University): \documentclass{beamer} \title{The Title} \subtitle{The Title} \author{The Author} \date{\today} \titlegraphic{} \begin{document} { \setbeamertemplate{background}{% ...

1

Use the nofootinbib class option: \documentclass[nofootinbib]{revtex4-1} \begin{document} \footnote{a test footnote.} \end{document}

2

I've written a package called lpform which does the formatting and labelling automatically. https://www.ctan.org/pkg/lpform Example:

2

You should be able to modify how the equation numbers are generated with the following: \renewcommand{\theequation}{\arabic{equation}} \theequation is the command that prints the current equation number. It is automatically called by the equation environment. Changing it to only print the equation number is what you seem to want. You could change it back ...

5

You could do this with leaders, but you can instead make TeX count how many copies of the dash will fit when a minimum gap between them is added and substitute this minimum gap with \hfill to cover up your tracks. \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand{\fillwithdashes}{O{}m} { \group_begin: \keys_set:nn { ...

3

If you pass x as the second optional argument to \hdashrule, it is converted to the \xleaders TeX primitive; with c, you get TeX’s \cleaders; and with nothing, you get TeX’s \leaders, which is what you want. Here is the code: \documentclass{article} \usepackage{dashrule} \begin{document} \setlength{\parindent}{0mm} \rule[0mm]{\linewidth}{1mm} ...

4

Since you are using memoir, you simply have to redefine \clarforchapter using, for example \gdef\clearforchapter{} A complete example: \documentclass[french,12pt,openany,oneside,openright]{memoir} \usepackage{lipsum}% just for the example \gdef\clearforchapter{} \begin{document} \chapter{One} \lipsum[4] \chapter{Two} \lipsum[4] \end{document} The ...

6

\circled is a fragile command this way (due to the \tikz etc content). It must be \protected then. Or define it with \DeclareRobustCommand, as for example \robustcircled, which can be used without \protect then. As a general rule: Use robust commands as arguments to the \section etc. commands. \documentclass[11pt,a4paper]{article} \usepackage{tikz} ...

1

The whole problem is, that the glossary key Mensch - Maschinen Schnittstelle is just too wide for the super3col glossary style. If I understand glossaries-user.pdf correctly, the width of first column for the given style is just used from the longest entry, which is Mensch - Maschinen Schnittstelle, shifting the 2nd column far the right and causing the ...

2

Not a complete answer as it doesn't deal with the rules before and after, but here goes. It uses the memoir \autorows macro. \documentclass{memoir} \newcommand{\trans}[2]{\shortstack{#1 \\ \textbf{#2} \\ \mbox{}}} \pagestyle{empty} \begin{document} \autorows{c}{3}{c}{% trans{one}{eins},\trans{two}{zwei},\trans{three}{drei},\trans{four}{vier}. ...

4


6


6


5

You could change the catcode of all symbols you want to reserve for math to \active and then let the characters replace themselves by your choice. I hope, you see for yourself why this is a really bad idea… \documentclass{article} \usepackage{amssymb} \makeatletter \let\@in\in \def\in{\ensuremath{\@in}} \def\minus{$-$} \def\reals{$\mathbb{R}$} \begingroup ...

5

It isn't clear that dropping \$ and explicit font changes really saves anything, it increases chance of error and when combined with the possibility of local macros saves very few keystrokes. However there are plenty of different implementations of math markup that make less use of \ and {} notably asciimath and the Unicode nearly plain text encoding for ...

4

This should do the trick. As I don't have your fonts installed, I used \textsf and \textit instead, but you should be able to adapt it to your will. There is not much to say, I adapted the solution give here. Note that the maximum number of columns is defined in the variable \maxcolumns. You can change it as you wish. Usage is the following: ...

2

Here is a flexible solution using pgfkeys that allows for arbitrary switches that are given as keys to the command/environment. I define two (user) commands \SelectCommentsToPrint and \SelectiveComment. The first command controls which comments will be printed and the second command defines the comments and specifies under what conditions they should be ...

2

Your approach here is to avoid having \WhatDoYouWantToWrite{All} throughout the document and then having to change every All to PartA (or something else) at a later stage. It's better to not pass an argument at all, and set something at the global level. Here is one such approach using TeX \if-statements: \documentclass{article} \newif\ifALL% ...

2

The standard for \printnomenclature is to issue \chapter*{\nomname} so you just have to redefine the name: \renewcommand{\nomname}{Abbreviations} and you get The font is different, because I don't have the one you're using, but this is irrelevant for the problem. Note: it's definitely a very bad idea to do \newfontfamily\normalfont{Minion Pro} ...

2

My suggestion would be to define a macro that handles the formatting of your "variable names", so you can have some consistent output in your document, regardless of where you use it: \documentclass{article} \usepackage[T1]{fontenc} % http://tex.stackexchange.com/a/139980/5764 \newcommand{\var}[1]{\texttt{\detokenize{#1}}} \begin{document} $... 4 Usually numbers are not italicized, but it is possible, for example: \documentclass{article} \begin{document} \[\mathit{01234567890}$ \end{document}

3

Here's something that (probably) does what you want. It doesn't use Arial, because I don't have it and don't like it, but substitutes Latin Modern Sans. You type \newsection with two arguments; the first says which type of \newsection it is, and the second is the section name. a is one type (no number, blue), b is another (no number, still black, no font ...

2

The code below gives us the following output: % arara: xelatex \documentclass{scrreprt} \usepackage{blindtext} \usepackage{fontspec} \usepackage{xcolor} \DeclareSectionCommand[beforeskip=-10pt,afterskip=10pt, font={\color{blue!40!black}\fontspec{Arial}\normalfont}, style=section, level=1, tocindent=2em, tocnumwidth=2em, indent=0pt ...

2

This can be achieved for example with a small patch to the \@sect command, which is responsible for the typesetting of the section title. The specific section type must be filtered and then \xrfill with a raising of about half of the letter height (0.5ex), a rule width and a rule colour (see the package documentation) (For this question I used some code ...

2


3

The vertical position of the left entry goes out of sync with the right base line by a stray \vspace, for example. The right cell tables do not use more than one column. Also the left and right \tabskips should be suppressed in the inner tables: \begin{tabular}{@{}l@{}}. The font sizes can be added to the columns more efficiently using package array. The ...

1

This is a well known problem for itemized list in tabular environments; I'd avoid them to begin with, but, if you can't, here's a workaround: \documentclass{article} \usepackage{array} \makeatletter \newcolumntype{P}[1]{>{\@minipagetrue}p{#1}} \makeatother \begin{document} \begin{tabular}{p{5cm} P{8cm}} \large 1. Keyboard apple & \begin{itemize} ...

2

How about defining a new I column type? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{array} \newcolumntype{I}[1]{>{\leavevmode\vspace*{\dimexpr-\topsep-\baselineskip\relax}\itemize}p{#1} <{\enditemize}} \begin{document} \begin{tabular}{p{5cm}I{8cm} } \large{1. Keyboard apple} & \item Trying on plates \item Never fly pent ...

1

By default, biblatex's numeric styles use a authortite-flavoured bibliography style. But with a little trick we can make it use a authoryear one. For this, use citestyle=numeric-comp, bibstyle=authoryear, as optional argument to biblatex and add \makeatletter \input{numeric.bbx} \makeatother to your preamble. Then the numeric bibstyle is applied to ...

0

I think what you are looking for, is the style of the bibliography. Maybe https://www.sharelatex.com/learn/Bibtex_bibliography_styles will help you

1

here is a method that will set all \cites upright, regardless of where they may occur. it will, as coded here, not set an optional element upright, but that is easy to change if desired. \documentclass{article} \newtheorem{theorem}{Theorem} \makeatletter \def\@cite#1#2{\textup[{\textup{#1}\if@tempswa \textup, #2\fi}\textup]} \makeatother \begin{document} ...

3

Here's a simple script that will mark up words that you specify by editing the script-- it was the simplest way to handle lots of words and lots of different colors. It requires perl, which is standard on Unix (Linux/OS X) and a single download away on Windows. I'm assuming you have lots and lots of keywords to mark, so I've used perl which makes it easy to ...

4

It seems a slightly strange request but what I think you are asking for is \renewcommand\cleardoublepage{% \clearpage \ifodd\value{page}\else\stepcounter{page}\fi } In other words redefine \cleardoublepage simply to step the page counter to force the page to be odd rather than throwing a blank page.

0

As stated here book by default is a double-sided document leading to several empty resp. white pages after some chapters because new chapters are starting on odd pages. You can remove these "trailing" white pages by using the oneside option. Make sure that this could change your page layout. The differences between documents using onside or twoside are ...

0

Found the answer here: fancyhdr not centering after changed geometry Essentially, whenever you modify the geometry of the page you need to redefine the fancyhdr width.

4

ConTeXt provides a proof of concept module for such translations: m-translate. You could use it to translate text, but the translation takes place before macro expansion. So, the method will fail if the translation string is part of a macro name. The translation can be enabled and disabled using \enableinputtranstion and \disableinputtranslation. Here is an ...

7

Here's another with l3regex. \documentclass{scrartcl} \usepackage{xcolor,xparse,l3regex} \ExplSyntaxOn \NewDocumentCommand \texthighlight { +m } { \david_texthighlight:n { #1 } } \cs_new_protected:Npn \david_texthighlight:n #1 { \group_begin: \tl_set:Nn \l_tmpa_tl { #1 } \seq_map_inline:Nn \g_david_highlight_colors_seq { \clist_map_inline:cn { ...

Top 50 recent answers are included