# All Questions

5 views

### TexStudio autocompletes when I type braces

When I try to type something in texstudio that has a macro associated, such as \hl{} it actually autocompletes to \hline{} as soon as I type the brace (it also does this for brackets). Words don't ...
11 views

### Tikz and text specific / dependent relationships

I have seen some people do some mind boggling things on this site using powerful packages (and standalone code) based on pgf and tikz. This question (How to get intersection point(s) of two glyphs?) ...
5 views

### How to place an “Export as PDF + Latex from Inkscape”-image above a \includegraphics image (overlay)

When you save images as a PDF, checking the PDF + Latex option, one gets 3 files: filename.pdf filename.pdf_tex filename.svg If you'd like to include this exported image in a Tex document, this ...
10 views

### Vertical and Horizontal alignment in table

Question: Here i made a simple table. My question is very simple how can i align text inside the table horizontally and vertically? MWE: \documentclass[12pt, a4paper]{article} ...
25 views

### How can I place a 1 cm margin to a set pdf book (a6) to print

So I've already got my book ready set for a6 paper: contents, latex compilation, and I'm already satisfied with the end result of pdf I've got. However I've noticed that it'd be good to add a small ...
6 views

### Export as “PDF + Latex” from Inkscape -> When images are not in the document’s directory

When you save images as a PDF, checking the PDF + Latex option, from Inkscape, I assume one usually gets 3 files: filename.pdf filename.pdf_tex filename.svg If you'd like to include this exported ...
14 views

### Memoir font size 13pt

This is the original issue: Is there a way to use 13pt as the main document font size with the memoir document class? I need a document with the 13pt font size in memoir due to 12pt being too small ...
12 views

### Rendering to Chinese overflows margin/papersize (pandoc)

I am using Pandoc to render from markdown to PDF. Since I have Chinese texts, I use xelatex with the WenQuanYi Micro Hei font. However, the PDF that gets produced overflows the margins on the ...
39 views

### Does LaTeX know what it is doing with figures [on hold]

I really love LaTeX, and learning it and working with is just as much fun as the beauty of the documents it outputs. But when it comes to figures in LaTeX, sometimes, even when using the '!h' ...
14 views

### How to overlay (annotate) sub-images (rectangles; but not straight, maybe chopped off) an image

The LaTeX Overlay Generator is a great tool to annotate images which contain sub-images like this (where the sub-images are all rectangles and all "horizontal with the screen"): However, some ...
15 views

### Titlesec & titles extending into margin

I would like to use titlesec to have gradient shaded section titles that extend into the left margin. I would like the section number and the gradient to extend into the left margin, but would like ...
16 views

### Handout: pages layout not correct

I'm trying to make a handout version of my presentation, however it seems not succeed. I want 4 slides collaged on 1 page. Can anyone give me hint to fix my problem? \documentclass[handout]{beamer} ...
19 views

### Minimal ConTeXt and Husayni example

I would like to typeset a line of Arabic using ConTeXt and the Husayni font. I can see the lfg files located here: /usr/share/texmf/tex/context/fonts/husayni.lfg ...
22 views

### Compatibility between parnotes and csquotes — Ways to solve compatibility problems

If you want to quote a text with footnotes, and want to place/position the notes just after the quotation paragraph : — It work perfectly with \enquote, \textquote… — It doesn't work well with ...
19 views

### Remove white space around subfigure on book class document

I have the following to include two sub figures side by side: \begin{figure}[H] \centering \begin{subfigure}{.5\textwidth} \centering \includegraphics[width=0.6\linewidth]{figure1.png} ...
34 views

### \tl_replace_all:Nnn recurse subgroups

Suppose I had a token list variable containing abc{ab{abc}c}. I want to replace every occurrence of b with d. As you can see there are subgroups containing b which I also want to have replaced, so ...
24 views

### Inline escaping {{ myVariable }}

How to escape Mustache notation inline for example: This is a Mustache placeholder {{ myVariable }} that will output myVariable. This seems to be causing errors: \lstinline{ {{#if}} ... {{else}} ... ...
60 views

### Overlapping over/underbrace

I wanted to do something like this: How to have overlapping under-braces and over-braces The example given is really great, so I tried it on my own: what I was hoping to achieve is to represent a ...
17 views

### random numbering of bibliography [on hold]

Due to some reason, the bibliography is randomly numbered rather than being numbered according to the order in which it is referenced in my latex document. How can I fix it? I have the following lines ...
13 views

### Why do each of the pages after the first drop down a little? [duplicate]

I tried to do a custom header on the first page and then just a regular footer on every page by copying things from other people's questions. But when I compile the first page looks fine but all the ...
24 views

### tex4ht does not show top and bottom rules of table when loading colortbl package

This MWE \documentclass[12pt]{book}% \usepackage{amsmath} \usepackage{longtable} \usepackage{colortbl} \begin{document} \begin{longtable}[t]{|c|c|}\hline x & y \\\hline \end{longtable} ...
72 views

### Why can't sectsty change the chapter font when it's used with babel package?

I'm using Latex to write my thesis in Hungarian, so I include in the preamble the following: \usepackage[magyar]{babel} Once this is loaded, I get "Chapter", "Figure", etc. in Hungarian and with ...
10 views

### \bibliographystyle{ieeetr} doesn't work anymore after language pack change in TeXWorks

I'm really starting panic because I'm writing my thesis and everything was working correctly on LaTeX, but I had Contents and List of figures titles in ITALIAN, as it is my language package used (as ...
17 views

### Separating bibitems according to author

I am using biblatex. Is there a way to have 3 lists of bibliographies which contain the following: the first contains some papers I have written (type=article) the second contains preprints I have ...
15 views

### Wrong page numbers in TOC using the memoir class and booklet package

I have five chapters located in different sheets and pages; however, all of the page numbers appear as if the chapters were in the same page. The whole document has more than 18 pages, but all the ...
34 views

### Multiple Choice Answers with Graphs

I need to have 4 graph options for a multiple choice question in LaTeX. I would like it to look like this picture. I have the graphs(tikzpicture inside minipage) with code before the ...
26 views

### How to put on and off comments while publishing latex documents into PDF [duplicate]

I created a file using TeXstudio, I have lots of comments in the document. I want publish the document one version with the comments and the other without it. Is three a way to put on and off comments ...
28 views

### Setting the caption of a figure to the top [on hold]

The below snippet of my code displays the caption of the figure at the bottom. I tried to use the floatrow package but I still get the same outcome (caption at the bottom). Any idea? ...
19 views

### \index*{phrase with spaces} shows visible spaces (with the index package)

I use the index package, and in particular its starred variant of the \index command: \index*{word} both typesets word and adds it to the index. When indexing a phrase, the spaces are typeset as ...
32 views

### Using enumerate with no indent

I have a enumerated list that start on the left of the text margin. How can I remove this so the word "Step 1" start on the same left margin like the rest of the document? \documentclass[paper=a4, ...
13 views

### pgfplot connects first and last point of line in the surf plot [duplicate]

I'm plotting a surface from data file arranged in columns x,y and value. The result looks like this: As you can see, first and last point of every line is connected. Relevant code: ...
27 views

### Cnodeput offcentered when using fractions

Here is the following code: \documentclass[multi,pstricks]{standalone} \usepackage{pstricks-add,amsmath} \begin{document} \begin{pspicture}(2,2) \Cnodeput[radius=.7](1,1){a}{$\dfrac{a_b}{a}$} ...
17 views

### TeXstudio: Is there a way to keep my custom macros and shortcuts in a separate file?

I've created some macros and corresponding shortcuts; found them in my texstudio.ini file (Macros and keysetting keys), buried deep among lots of predefined stuff. Is there a way to 'modularize' it a ...
24 views

### Display Ubuntu terminal output

I am writing a memoir in latex. I have lot of output from Ubuntu terminal and I have tried to put in verbatim, but this is really not pretty. I was wandering if there is a latex tip to put Linux ...
28 views

### Problems with positioning footers using fancyhdr

I'm having a problem placing footers on my document. On the first page it shows ok, but in the next pages it doesn't show at all. A bit of thinkering made me realize that the footer was indeed ...
24 views

### 'minimum width' no effect on node with horizontal multipart

I have a multi-parts node N1, below it a node N2,I wish N1 to have same width as N2. I have set minimum width=3cm for every node but this did not have any impact on N1 node !? ...
23 views

### Subcaption package not doing what I want it to do

I want to build a figure with 5 subfigures inside. The code I have goes as follows: \begin{figure}[hbt] \begin{subfigure}{0.4\textwidth} \includegraphics[scale=0.25]{mi1} ...
22 views

### using \include for unnumberred chapters and sections ->tableofcontent mess?

I want to have a document with the following preconditions: sections in separate files -> \include{} chapters and sections are unnumbered -> using \addchap{} and \addsec{} chapter headings should ...
26 views

### \index command adding spaces after underscores

I am writing a document with an index of commands that may contain an underscore symbol. Thus, I use entries like: \index{a\_b} However, the .idx file contains code of the form: \indexentry{a\_ ...
14 views

### How to put figures in two column horizontally and not vertically in top and bottom?

How to put figures in two column horizontally and not vertically in top and bottom? can you bring an example?
14 views

### How to auto place figures on the left in odd pages, and on the right on even pages?

I'm using wrapfig. On every page, there's only one figure (and text). I'd like the placement parameter of wrapfig to be l for odd pages, and r for even ones, then alternating. Can it be done? If yes, ...
20 views

### Counter of nested enumerate environment isn't displayed

I am using two nested enumerate environments and the 6th's counter isn't displayed although I get no errors or warnings. Why is that? How do I fix it? MWE \documentclass{article} ...
12 views

### How to center watermark using draftwatermark? \SetWatermarkHorCenter is not working [on hold]

I'm trying to center the watermark on my document using \SetWatermarkHorCenter. It works fine on Windows (MikTex - TexStudio), but it's not working on Linux (Ubuntu Server 14.04). I've managed to ...
12 views

### Incomplete Table of Contents (TOC) while using the memoir class and the booklet package

I'm trying to generate a small TOC of a booklet with a few chapters and some sections, but the only thing that is generated is its title (i.e. Contents). I haven't found the root cause of the problem ...
20 views

### Bad math environment delimiter error

I want my math equation aligned at the center BUT!! \item Vo is calculated as shown: $$Vo = (1 + R1 $$\div$$ R2) + (Iadj $$\ast$$ R2)$$ Because Iadj ...
110 views

### How to put 12 figures in 3 columns?

Here is my effort: I want to put 12 figures in three columns and four rows. Can anyone demonstrate that how should do this correctly? Following gives 1 column with 4 figures. Need to generate another ...
10 views

### Problems with enumerate and itemize in beamer [duplicate]

I'm trying to create lists for my presentation in beamer. Itemize environments are compiled, but the bullet points are not shown. Enumerate environments cannot be compiled however. Even if I try ...
11 views

### Missing section numbering with classicthesis

As soon as I include the classicthesis package, all section (and sub[sub]section) numbers vanish. Minimal working example: \documentclass{report} \usepackage{classicthesis} ...