# All Questions

22 views

### Convert numbers in string to string

I store some strings in a variable \def\nomVAR{A12Z4E} and I want to create some other command using the content of \nomVAR. LaTeX doesn't accept to declare variable with number in its name. So the ...
18 views

### Adding Bibliography after Appendix, without including it

I'm currently working on a document that is based on the Elsevier document format (elsarticle), and I have a bunch of sections, then an appendix, followed by a bibliography section. It is structured ...
27 views

### Beamer: How to get value behind \setbeamertemplate{itemize item}{} and related?

I know that I can change the itemize symbol in a LaTeX Beamer presentation with \setbeamertemplate{itemize items}{\symbol}. I use a corporate template which defines the symbol that way. Now I want to ...
113 views

### Datatool DTLifnull not working

Considering the following database: Name,ID,Gender,Years in Service ,382473856,M,15 Francesca Joestar,461276432,F,10 Chan Ker Mei,463724631,F,5 Hikaru Yagami,154954739,M,10 The first line has the ...
16 views

### Removing space on top of displayed equation - AAAI paper

I am using AAAI style file and have some equations enclosed in $\begin{array}{l} Some formulas \end{array}$ Whenever such equations are displayed on top of the page (either left or right ...
15 views

### Rotate table without rotating text [duplicate]

I'd like to rotate some tables, but the text should not rotate. I have 10 tables, which are really long, but not very wide, which looks ridiculous. How can I switch rows and columns and keep the text ...
125 views

### Changing fontsize on individual beamer note pages

I am writing a presentation in which certain slides are heavily commented upon and others not so much. As I am using \pgfpagesuselayout{2 on 1}[a4paper,border shrink=5mm] (and thus displaying notes on ...
106 views

I want to create af header like chapters. The command should be \Apendiks{} and then it should do like if I had written \chapters{The first Chapter}. \titlespacing*{\chapter}{0cm}{0cm}{2pt}%pbk ...
183 views

### How do I get Texmaker to use the central bibliography?

Like many others I wish to place my bibliography (.bib) file in a central location so that all my disparate writings do not need a .bib rider with them (and so all are updated automatically when I ...
436 views

### Can't find ocgbase.sty while using animate

I am trying to learn the animate package. While I was trying to compile some example codes, I always run into the problem that **LaTex Error: File `ocgbase.sty' not found.** I am using Miktex ...
18 views

### Language detection and condition

My problem is quite simple. I use the babel package and depending on the language I want to display something with respect to the active language. Therefore I use the package xstring. My code is the ...
10 views

### tcolorbox, not displaying symbols in listings (using minted) [on hold]

I have the following latex code \begin{ipythonnb} \begin{ipyin} A = np.array([[3, 2, -1], [2, -2, 4], [-1, 0.5, -1]]) b = np.array([1, -2, 0]) np.linalg.solve(A,b) \end{ipyin} \begin{ipyout} array([ ...
50 views

### Beamer boxes with flat shadows

Is there a possibility to change the 'faded out' shadows from beamer boxes to 'flat shadows'? With flat shadow I am referring to a shadow of a single color without a gradient. Ideally, I would like ...
54 views

### Chaptertitle boxed in twoside book-document

\documentclass[11pt,a4paper,twoside,openany]{scrbook} \usepackage{tikz} \usepackage[explicit]{titlesec} \usepackage{blindtext} \titleformat{\section}[hang]{\large\bfseries}{\thesection\quad}{0pt}{#1} ...
2k views

### Problem using latexdiff and pdflatex with custom command

Using latexdiff I have the problem, that by adding new \section, I get the following error by trying to run pdflatex. ! Argument of \UL@word has an extra }. <inserted text> ...
174 views

### Rømer wheels in TikZ - wrong length of the spiral arc?

I'm trying to draw a pair of so called Rømer wheels: These are two logarithmic spirals rolling on each other, one clockwise and the other counterclockwise, but my equation for rotation angle of ...
23 views

### How to create Z-shaped arrow line and other lines with even more corners [duplicate]

I want to know how you can easily create a line connecting two nodes which has more than one corner? One corner is easy, you can just use something like \path [line] (node1) -| (node2);. But what to ...
150 views

### TikZ — archimedean spiral precision problem?

Here is my code: \begin{tikzpicture}[x=1mm, y=1mm] \clip[] (-26, -26) rectangle (26, 26); \foreach \a in {0, 30,..., 330} { \foreach \r in {4,8,...,24} { \draw[line ...
18 views

### How to stop indentation of new paragraph in tufte-handout?

I'm using the tufte-handoutclass, but I want to deviate slightly from the template. I would like to separate paragraphs through a small space, not through indentation. I usually do this in my Latex ...
143 views

### \boldmath with unicode-math AND fonts with a MATH table

There are several questions on this site about \boldmath with unicode-math. As Example 1 below shows, \boldmath does not in general work for unicode fonts with a MATH table, unless there is a specific ...
60 views

### LyX 2.1.4 does't load Document Classes after using Reconfigure

I tried to add on the LyX (Windows 10) Layouts folder some .layouts, and after I run "Tools -> Reconfigure" and restarting LyX it doesn't neither the default classes. How can I solve this problem? I ...
58 views

### PgfPlots - Data in one column to be plotted into separate graphs

I have a large amount of measured data, that I would like to plot. Data are organized into three columns where the first column provides a frequency, the second and third column are values measured at ...
23 views

### Making nice box in {article}

\documentclass[10pt,a4paper]{article} \usepackage[utf8x]{inputenc} \usepackage{ucs} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \makeatletter ...
180 views

92 views

### Assistance fixing this drawing of interlocking tori using sketch/tikz

I am trying to draw an interlocking tori like this one: For this I have been looking for the web for similar images and then have tried to modify the code. So far I got to this: def torus { ...
241 views

\usepackage[nottoc,notlot,notlof,numbib]{tocbibind} \usepackage[titletoc]{appendix} \usepackage{titletoc} One of these line is giving the error mfirstuc.sty not found. I tried installing package ...
871 views

### Problems on Latex compiler Errors

File mfirstuc.sty not found. \RequirePackage, Any one can help me how to fix this error. I am importing all packages but I don't know what's going on?
33 views

### Numbering Equations in the following form [duplicate]

I would like to number equations (in increasing order using positive integers) so that the number appears in parenthses (n) in the right margin. Currently, my equation numbers appear in the left ...
22 views

### titlesec: left margin alignment of run-in custom headers

I've used titlesec to define headers in my custom .sty file. See the code at the end of this post, and especially the runin shape spec for paragraph. For various reasons, I want numbered level 4 ...
2k views

### How to align text within an algorithm environment?

I wish to duplicate an effect I've seen elsewhere (image below) in which text not necessarily at the beginning of a line is aligned with text elsewhere. I don't know which environment is suitable, ...
213 views

### Aligning matrices

Sorry if this might be a very banal question. I am fairly new to LaTeX and I am having issues with matrices alignment. I am trying to achieve pretty much what is shown in this picture, I have tried ...
141 views

### Making a figure for a decision boundary with latex?

I'm writing my thesis in machine learning in latex and I would like to make a figure that shows 2D plot with some points with different shapes and a line that separates them. In other words, I want to ...
41 views

### cancel package: combine bcancel and cancelto (bcancelto?)

Is there a way to create a negative slope with the cancel package, but using \cancelto? i.e. I would like to combine the two commands so that I have a negative slope but with an arrow and number. ...
30 views

### Installing MathTime Professional 2 on El Capitan

I just purchased mtpro2 (the complete version), and I am trying to install it on a Mac using the latest El Capitan. I followed the instructions on this website: http://cims.nyu.edu/~fennell/mtpro2/. I ...
209k views

### How to add a URL to a LaTeX bibtex file?

I'm using bibtex for my bibliography in LaTeX. I have some URL's I need to cite in the paper. How do I add URLs into the .bib file? A typical section in my .bib file looks like this: ...