# All Questions

171,342 questions
2 views

### How to remove the last line-feed raised by \foreach

As the following example showes, there are an extra line-feed which is not needed. Is there a way to eliminate? Example: \documentclass{article} \usepackage{tikz} \begin{document} \def\mylist{str1,...
5 views

### Removing \label from a string

Is there a way to create a command that removes, if present, a \label from some text. It should work like this: \documentclass{article} \newcommand{\removelabel}[1]{} % some code \begin{document} \...
4 views

### Quantum circuit, Move the slice labels to below the circuit

I am using the Quantikz package to make some quantum circuits and I am interested in using the Slice feature that's built into the package. I would like to move the labels for the slice to the ...
11 views

I'm trying to adapt the code below so that the gradient fade-out effect appears only on the first page (title page). \setbeamertemplate{background}{% \begin{tikzpicture} \path (0,0) rectangle (\...
9 views

### Change biblatex field format only when field has been replaced

In my document, I want to have all abbreviations consisting of consecutive capitals to be set 90 per cent of the font size. I can do that manually in the text. But if it comes to journal abbreviations,...
25 views

30 views

### Pre-define complicated math operators

Problem I am trying to find a easy way to write Rademacher complexity so that I just need to write different index, function and constraint every time. Like defining partial derivative I previously ...
5 views

### Is there a list of style elements that I can put in a Lyx layout file?

I know a few of the commands that can go in a Lyx layout file: Align AlignPossible Font / Size / EndFont But is there a thorough list of the possible style elements that I can put in a Lyx layout ...
25 views

### Algorithm: ELSEIF problem

I want to compile this code in Latex (shown below). I use three libraries. I especially need elseif and \state command and line number. LaTeX Error: Command \algorithmicindent already defined.Or ...
26 views

### \ifthenelse command when using expl3 syntax

What is the equivalent of \ifthenelse{<statement>}{<iftrue>}{<iffalse>} when using expl3 syntax?
21 views

I have a problem trying to invoke texcount from LaTeX file. I am using MacOS with MacTeX 2018 installed. texcount comes directly with the MacTeX and it is on the PATH. When I run texcount on command ...
46 views

### Identify template for lecture notes

Very simple, but does anyone know which LaTeX template these lecture notes are done in?
20 views

### XeLaTex fontspec crash on Texmaker [LaTeX error: “kernel/invalid-variant”]

when I compile: \documentclass{scrartcl} \usepackage{fontspec} \begin{document} Hallo \end{document} on Texmaker 5.0.2 with XeLaTex and Commandline: xelatex -synctex=1 -interaction=nonstopmode -...
22 views

### \hyphenrules does not break words

Following the code used both here and here, using \hyphenrules should inform polyglossia about breaking points within a word. The following code does not break the word in question. Why not? What can ...
31 views

### Slightly modify style in biblatex

Edit: I tried making a MWE, I hope it is correct this way. If not, please let me know! .tex document: \documentclass[a4paper,12pt]{scrreprt} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \...
29 views

### How to make words in an align/equation environment not look weird

If I have an align/equation environment (Or any environment which is maths based) like so: \documentclass{article} \usepackage{amsmath} \begin{document} y_{vertical} = k \sin{x} \...
35 views

### tcolorbox not centering in absolute positioning tikz node

Alright people, I've stumped myself again. It appears (to me at least) that tcolorbox has some outside margins or padding that I don't know how to control. I use tikz absolute positioning to format ...
32 views

### Inline environment shortcut (like $blah$)

I want to be able to format code with a monospaced font. Right now I'm using \texttt{} but it's kind of a pain to keep typing that everywhere. Is there any way to use a shortcut instead? For example, ...
17 views

### I need the contents in a single page before the title of the article with page numbers

I want to add a Contents table along with page numbers in a single page before the tile of my article. I have used the following Code: \documentclass[12pt,leqno]{amsart} \topmargin=0.02cm \...
14 views

### Listings escapeinside bold text

\documentclass{article} \usepackage{listings} \lstset{ framesep=5pt, frame=single, captionpos=b, aboveskip=3mm, belowskip=3mm, showstringspaces=false, columns=flexible, ...
13 views

### When clicking on 'typeset', preview does not appear

I'm using TexShop 4.24 and pdfTeX on macOS 10.14.3 In the past, when i click on 'typeset', or Command T, a preview window of the pdf pops up. However, recently when clicking on 'typeset', i get the ...
45 views

### Drawing skeleton robot consisting of revolute joints in Tikz

I am trying to draw the following skeleton model of a robot which consists of 4 revolute joints as shown below: Below is my attempt to draw it: \documentclass[tikz,border=2px]{standalone} \...
18 views

### Text not horizontally aligned with \item

A bit nickpicky, but \item from enumerate and flalign* don't line up correctly, such that there is a small vertical distance between the two. Code surrounding error: \begin{enumerate} %some long ...
28 views

### Someone could help me with this code? Was made in latex-tables.com

I made a table with the help of latex-tables.com. But when I try to compile, I had the error: Use of @startpbox doesn't match its definition. ... What am I doing wrong? \usepackage{rotating} \...
11 views

### Wrapfigure in twocolumn text [duplicate]

I am trying to wrap a figure in two column text, so that it cuts half of one column width and half of the other column. This is my example of MWE: \documentclass[twocolumn]{article} \usepackage{...
99 views

### Draw grid lines on second image

In my example, I wish to draw grid lines on the second image but now it draws on first image also: \documentclass{standalone} \usepackage{graphicx} \usepackage{tikz} \usetikzlibrary{positioning} \...
14 views

### How to Make the Following CV template compile

I know how to use TeX, but I know nothing about coding. I am trying to write an academic CV for a conference application due tomorrow. At the following link, https://www.math.nyu.edu/student_resources/...
24 views

### How to include a list of symbols?

Is there a special way, a standard way to include a list of symbols in a LaTeX document: \documentclass{article} \usepackage{amsmath} \usepackage{algorithm} \usepackage[]{algpseudocode} I have a few ...
32 views

### How to draw a 2-dim Brownian motion into a disk

I should draw a Brownian motion starting into a disk until the first exit time from this disk in my LaTeX work (and after i should do similar things with SLE_k), how can i do? EDIT: I draw some ...
26 views

### Page number does not appear on first page of table of contents, list of figures and list of tables

When I do my table of contents (TOC), my list of figures (LOF) and my list of tables (LOT), something strange happens, only the numbering of the page appears from the second page of the table of ...
18 views

### ! LaTeX Error: Command \openbox already defined

Please help me. I think maybe I made a certain mistake on using bib. Console output: ! LaTeX Error: Command \openbox already defined. Or name \end... illegal, see p.192 of the manual. ...
43 views

### Speeding up repetitive typing

If I am writing a document say, \documentclass{article} \usepackage{amsmath} \begin{document} y = some long equation \end{equation \end{document} and some really long equation ...
14 views

### Pseudocode argument management: best way to deal with many arguments

In latex pseudocode, if you have function calls inside another function with many arguments, lets say more than 4, would you still put the arguments everywhere, omit them or use some kind of ...
39 views

### Line break with longtable and multicolumn

I am trying to write up the following table. However, I cannot get a line break to work (needed for Branches and Results column's) and as such the table runs off the side of the page. My attempt is ...
15 views

### Smaller \frametitle row in Hannover theme in beamer

\documentclass[aspectratio=169]{beamer} \usepackage{blindtext} \usecolortheme{default} \usetheme[width=2.3cm]{Hannover} \begin{document} \begin{frame} \frametitle{abc abc} \blindtext \...
11 views

### \rowcolor not working in latex IEEEtrans

I am trying to colour rows in some tables in a latex IEEEtran article but the colouring does not show at all, and no error is thrown as well. Here is the snippet of code I used: \usepackage{array, ...
170 views

### Simple trees for mathematics

I have to draw many simple trees similar to the ones depicted for instance at page 128 or 133 of this beautiful book by Cheng and Lauda. I used to have some knowledge of the package forest, but ...
17 views

### Conditional output dependent on --shell-escape option value

I would like to print the git revision of the document with the latexgit package, which requires the --shell-escape option to work. As this feature is very optional for building the document, I would ...
16 views

### How to make a macro like \parbox with a style of spread align

I'd like to construct a macro like \parbox, but with a style of spread align, as the option [s] in \makebox. That is to say, when the width of text is less than the defined width(only one line of ...
24 views

### How to get equations in align environment to have numbers

If I have the following situation \documentclass{report} \usepackage{amsmath} \begin{document} \begin{align*} y &= 2x+3 y &= 7x+4 \end{align*} \end{document} The equations in the align ...
27 views

### tikzmark for math inside tikz node label

I am looking for a way to mark particular positions within the math-text of node. My MNWE is: \documentclass[tikz]{standalone} \usepackage{mathtools,xparse,bm} \usetikzlibrary{tikzmark} \...
14 views

### using axis xtick from variable

I've been trying to create a macro that I can use to plot data using pgfplots and I want control over where ticks go and the label used, but I can't figure out why things aren't behaving as I expect. ...
29 views

### How to explicitely set right margin to a text

I am interested in setting a right margin for the date 2014 on the same line with National Olympiad of Informatics to be vertically aligned with the date above it and have a similar format. I have ...
20 views

### How to solve saving failed with TeXstudio?

when I try to compile or save my document appears the following message: "Could not get write permissions on file ... Perhaps it is read-only or opened in another program?" I'm using TexStudio, and ...
17 views

### Updating Bibtex references on Texmaker

Each time that I add an additional source to my *.bib file, I have to close my *.tex file, re-open it and then press F11, to have that file available as a list of references to cite from. Is this ...
79 views

### Combine map and use expl3 macros

I'm trying to build a macro that processes a comma-separated-list of elements so that: \MapAndUse{a,b,c} would produce: My first intuition is to use a expl3 combination of \seq_map* to process each ...
26 views

### How can I make the underbraced bigger?

I have to kind of underbraces: \label{eq:romberg2} M=N\left(\frac{h}{2}\right)+\underbrace{K_{1}\frac{h}{2}+K_{2}\frac{h^{2}}{4}+K_{3}\frac{h^{3}}{8}+\hdots}_{\text{\normalsize{Error}}...
28 views

### Text not quite centred in table using makecell

See my code below and attached image showing output of the code. I'm producing a table which is just about finished, but one last thing is bothering me. The text in the cells of the column titled "...