New answers tagged

0

I'm not sure how are you getting this data, but if you are adding dots manually, I believe fit and shapes.geometric libraries from tikz could be helpful: \documentclass{article} \usepackage{tikz} \usetikzlibrary{fit,shapes.geometric} \tikzset{% bdot/.style={circle, draw, fill=blue, inner sep=0pt, minimum width=4pt}, rdot/.style={circle, draw, fill=red, ...


1

This might get you started. pgfplots is a famous LaTeX package, have a look at the examples from the manual (http://pgfplots.sourceforge.net/gallery.html). It can get (very) complex if you want to control every little aspect. "PGFPlots draws high-quality function plots in normal or logarithmic scaling with a user-friendly interface directly in TeX." \...


0

I propose to do that with tabularx, using the syntax >{\hsize=coeff\hsize}X, where the coefficients are proportional to 20, 30,25 and 25 respectively, with the constraint is that the sum of the coefficients be equal to the number of X columns (4): \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{booktabs} \usepackage{tabularx} \usepackage[...


1

\documentclass{article} \usepackage[utf8]{inputenc} \usepackage{booktabs} %---------------- show page layout. don't use in a real document! \usepackage{showframe} \renewcommand\ShowFrameLinethickness{0.15pt} \renewcommand*\ShowFrameColor{\color{red}} %---------------------------------------------------------------% \begin{document} \begin{table}[hb] %Label ...


1

As David said, no, it is not slower. The large trees are all by default hashed into ls-R files and thus the only increase in time is the loading of the larger ls-R file, which can be disregarded.


0

I just struggled with more or less the same issue, except the automake option does not work properly, because I use an aux folder for all build files. If you want to run makeindex directly from ST3 with LaTexTools to compile the glossaries, just add the following line to the very beginning of your .tex file, before \documentclass: \immediate\write18{...


3

Class bioinfo loads package crop and puts crop marks on the page and page information in the header. The page information is in the top edge that will be cut off. To remove the information from header add class option noinfo: \documentclass[noinfo]{bioinfo}


3

No, you can only append .bib files --- they are flat files by design (at least... I think!), although they have some minimal expansion/macro capability(1). The best option is using some tidying applications, like bibexport or JabRef. Several options are listed in the answers to Cleaning up a .bib file Note (1): for example you can say at the start of a ....


1

You could wrap the problematic citation like this \hbox{\cite{...}} to make it unbreakable. It worked nicely for me.


1

With the multicolrule package: \documentclass{article} \usepackage{multicolrule} \columnseprule=0.5pt \SetMCRule{line-style=solid,extend-fill} \begin{document} \centering{QUIZ} \begin{multicols}{2} Q1 \columnbreak Q2 \end{multicols} \end{document}


1

I have experienced the same problem. It vanished after I removed the folder ~/.texmf-var. I found this option here . UPD: I have also tried the second option from this forum and deleted ~/.texlive folder. It was a terrible idea, TexLive stopped working at all. So I needed to reinstall everything.


0

This is already available on the site created by @Fran ---- https://tex.stackexchange.com/a/185663/197451 Have a look and see if this is what you wanted The output will be as below The MWE \documentclass{article} \begin{document} \centering With \verb|minipage|s:\bigskip \fboxsep=.6em \fbox{\begin{minipage}[t][2cm][t]{.25\textwidth} \begin{itemize} \...


1

\documentclass{article} \usepackage{tikz} \usepackage[american voltages]{circuitikz} \begin{document} \begin{circuitikz}[scale=2] \draw (0,0) to[voltmeter,label={}] (2,0); \end {circuitikz} \end{document}


2

You can use a combination of packages typearea and geometry: \documentclass{article} \usepackage{lipsum}% only for dummy text \usepackage[usegeometry,paper=11.69in:8.27in]{typearea}% load before geometry \usepackage[margin=1in,footskip=0.25in]{geometry} \newcommand\changepapersize[1]{% \cleardoublepage \KOMAoptions{paper=#1,DIV=last}% \newgeometry{...


0

Though I don't have a direct solution for this, I created a work around which worked fine. First, I compiled the article using pdflatex which resulted in figures with substituted labels in pdf format. Later, I ran a script to convert pdf to eps. There are several options for this conversion. I tried using pdftops option. The following is the automated script ...


0

Try to split the figure into two / multiple minipage and import / input your pdf_tex file in it. \begin{figure}[H] \begin{minipage}{.5\linewidth} \centering \def\svgwidth{1.0\textwidth} \import{Chapters/folder/Pictures/}{Pic1_a.pdf_tex} \end{minipage} \begin{minipage}{.5\linewidth} \centering \def\svgwidth{1.0\textwidth} \...


2

hyperref patches \counterwithin but you use it before hyperref got the change of patching it. So use \counterwithin after loading the hyperref package and the problem should be gone. The answer from Ulrike is just a work-around, trying to correct the damage done by the wrong package load and usage order. IMHO this is the wrong approach. See also https://...


1

Redefine \theHfigure so that it gives an unique identifier for the destination anchor: \documentclass{article} \usepackage{float} \usepackage{graphicx} \counterwithin{figure}{section} \usepackage{hyperref} %\counterwithin{figure}{section} %\usepackage[all]{hypcap} \renewcommand\theHfigure{\thesection.\arabic{figure}} \begin{document} \section{one} \begin{...


0

\counterwithin{figure}{section} \usepackage[all]{hypcap} in the preamble after the hyperref-package. In this case \counterwithin{figure}{section} aswell \usepackage[all]{hypcap} is enough, but sometimes you need both, also \usepackage{caption} often helps. This question uses https://stackoverflow.com/a/6696146/6747994 https://stackoverflow.com/a/4024019/...


1

Hi Arnaud and welcome to TeX-SE. As much as I appreciate your choice of "One editor to rule them all", I find it quite odd, as you don't have access to some tools. If your are compiling at the command line you need pdflatex <filename>.tex to create to pdf and the .aux file, then apply bibtex <filename>.aux to create the .bbl file from your .bib ...


0

You should probably use newunicodechar package. https://ctan.org/pkg/newunicodechar


3

I've processed your two MWEs with both pdflatex (without microtype) and xelatex (without defaultfeatures options) and all the outputs are identical. What you are observing are differences created by using features like microtype and defaultfeatures that are not available for the other processor. You'll just have to decide which you prefer.


1

This fixed it for me: initexmf --mklangs initexmf -u Source: https://github.com/MiKTeX/miktex/issues/136#issuecomment-392561637


2

Beside the missing paragraphs: you should also be aware that a minipage with [t] alignment is like a letter with a rather large descender (a large depth). This means that following lines are glued to the bottom at a fix distance (1pt by default). If you want the normal distance between lines you should end the text in the minipage with a \strut: \...


6

A minipage has no special spacing rules, it just acts like a big letter, so it is easier to see how \medskip (or \vspace) works just using letters: \documentclass{article} \begin{document} \bigskip\hrule\bigskip 111 a b\\ c \bigskip\hrule\bigskip 222 a \medskip b\\ c \bigskip\hrule\bigskip 333 a \medskip b\\ c \bigskip\hrule\bigskip \end{...


1

Extracting some links from the comments, the following workaround seems to resolve the issue: I'm recording it here really as a "temporary" solution for anyone else who comes along, and note that this is essentially the same code as in the question here: Tikz patterns and cmyk color model It may well be that in other uses of pgf, the following code is not ...


0

If some one will face this problem in the future and will be using DVI workflow the solution can be dvibreaklinks.sty. It will work only with luatex engine because link insertion is based on \localleftbox and \localrightbox. Links will be properly broken via pages (floats and headings will be ignored) \documentclass{article} \usepackage[paperwidth=10cm,...


0

OK, so the answer was posted in one of the comments: \ifx\directlua\@undefined\ClassError{myclass}{Go away}{}\stop\fi


1

If you comment this command: %interlinea 1,5% \linespread{1.5} in line 90 of your code, your title page will look as you expect. To set the line height in the main body of your document you may try other solutions (maybe this package would help).


4

Although the question already has an accepted answer, I feel the urge to provide a solution which does not depend on luck with the update, for this did not work for me. I had the same problem with German hyphenation and was eventually able to solve it. Maybe this helps future users to solve their problem. Setup Brand new TeX installation (MiKTeX, ...


3

After you posted your MWE, I realised that the issue is not the missing \protect (in fact \color is defined as \protect\color␣ with a space in the macro name of the second \color and that one contains the actual code). The issue is that in book the page headers contain the upper cased chapter title using \MakeUppercase. That turns the colour into RED and ...


0

Another solution is to use a narrow b{}-column in combination with \multicolumn. Then the heading is (correctly) aligned at the bottom baseline. Use p or m if your typographical traditions recommends centred or top aligned headings. I have defined a new column type C to reduce the clutter: \documentclass[]{article} \usepackage{booktabs, array} \usepackage{...


2

You can just add a tabular. Unfortunately, your example was missing important ingredients. You may also consider using siunitx for the units, makecell and whatnot, but this is a simple way to address your question. \documentclass[]{article} \usepackage{booktabs} \usepackage{longtable} \usepackage{lscape} \begin{document} \begin{landscape} \centering \begin{...


3

The newest skak version has changed the behaviour of variation. It no longer types only moves, it also tries to parse the game and that makes it more pickier regarding the moves: A variation has to be a variation. So you should move the e6 mode: \documentclass{article} \pagestyle{empty} \setcounter{page}{6} \setlength\textwidth{231.83385pt} %\...


2

In the PDF it makes no difference whether the input is via a virtual file or via explicit characters and kerns in the source. You can not use \pdfglyphtounicode as that works at the font level and in the PDF there are two characters, however you can use the ActualText feature and tag the range with a suitable replacement, \documentclass{article} \begin{...


1

Please, be aware that subfigure is obsolete. Either use subfig (and \subfloat instead of \subfigure) or the more recent and maintained subcaption package. I guess that you want the caption to be next to the set of images because the caption text is long. Otherwise bottom placement would be much better. Just use a tabular to align the images and a minipage ...


1

This differs from sidecap in that it computes the width available for the caption and it aligns the tops using \raisebox. The caption \label should go inside the minipage with the caption. \documentclass{article} \usepackage{subfigure} \usepackage{graphicx} \usepackage{varwidth} \begin{document} \begin{figure}[htp] \sbox0{\begin{varwidth}{\textwidth}% get ...


9

\textbackslash is an encoding dependent command and the default OT1 encoding does not have a backslash so it defaults to $\backslash$ in that case (which is typically thinner). The cmtt font is designed for verbatim and despite being notionally classed as OT1 encoded in LaTeX it includes most ascii characters in their standard positions. So with url package \...


3

All labels are written out to the .aux file in lines beginning \newlabel. The mechanism is described in this answer. So looking for all instances of \newlabel in the .aux file will give you the information you are looking for. If using the .aux file for reference, copy it under a new name and use the copy, since the "original" will disappear as soon as the ...


1

A good old shell solution :) #! /usr/bin/sh match="grep -THn -A 2 --colour" pattern='\\label{.*}' find $1 -name "*.tex" | xargs -n 1 $match $pattern Edit: pass an optional directory argument: $ ./labels.sh chapX, as this may produce some output! Prints all matches with filename, line number and two lines of context (label highlighted).


1

The comment as an answer: You need to enable the latex_macros extension to have the macros evaluated. From the Manual Macro definitions in LaTeX will be passed through as raw LaTeX only if latex_macros is not enabled. To do this, use something like this: pandoc test.tex --from markdown+latex_macros -o test.html


Top 50 recent answers are included