# All Questions

173,985 questions
6 views

### Avoid breaking math insertions in text

It is not a good idea to break mathematical insertions in text. It happens in this example: \documentclass{report} \begin{document} dfasfsd asdfsdafds asdfsdfds gdsds sfsdd ssfsd wwer sfdsf ggfh dh ...
7 views

### LaTeX file gives error 135 in Acrobat on some machines but not others

I'm not sure if this is the best place to ask this, but I can't think of a better one. I am using the Tufte book class (with help from a professional) to typeset a book. When I run my code it runs ...
15 views

I'm trying to draw a band with a shading over a whole page. This band should have a small angle of 15° from west to east. But I seem to be unable to give the shading the "correct" angle too. How can ...
8 views

### tabularx column has extra padding at right?

\documentclass[]{article} \usepackage{tabularx} \newcolumntype{h}{>{\hsize=.5\hsize}X} % half width of X \begin{document} \begin{table} \begin{tabularx}{\linewidth}{ h | X | X } \...
6 views

### Extra period after et collab. (french et al.) in francais.bst

I am using the francais.bst bibliography style and there is an extra period after the "et collab." (the french equivalent to "et al.") in the bibliography entries. When citing in the text, there is a ...
9 views

### ConTeXt: text to the left of a numbered displayed formula

I read in an old style manual (Sättningsregler, by Lansburgh) that suggests to set short word(s) separating two displayed formulas (if there is space) to the left of the second displayed formula, as ...
32 views

### How to get a single big right brace?

I am trying to make the right brace cover the whole matrix like the \overbrace'. Is there a way to do this? \documentclass[reqno,12pt]{amsart} \usepackage{amsmath,mathtools,amssymb} \usepackage[top=...
7 views

### TexStudio doesn't find the package “Pygments” although it is installed

I'm try to use the minted package in latex to display code in latex document. From Texstudio, I get an error message you must have pygmentize installed to use this package. So I tried to install the ...
129 views

### How to create a command for the “strange m” symbol in latex?

I am wanting to use the "strange m" symbol in my latex code. I had hoped to use the scorpio symbol, but have been unable to find a scorpio command that produces what I am looking for. The two that I ...
34 views

### fraction of matrix

If we need an equation with matrix and fraction, the most evident code is L(z)= \frac{\bordermatrix{& & & i & & \cr & 0 & \dots & 1 & \dots & ...
22 views

### How to include PNG (or PDF) and EPS Files in LaTeX (Overleaf)?

I need to include both types of these files in my document (and definitely need EPS as I'm importing organic mechanisms), but I can't seem to find anything that works. As such, I'm on the setting ...
73 views

### tikz: drawing arrow

How can I make the left vertical lign arrow-style as the right one? \documentclass[tikz,border=3.14mm]{standalone} \begin{document} \begin{tikzpicture} \draw[->] (0,3) -- (0,0) node[below] {$0$} ...
29 views

### How to align text in two columns under table or image that is wide as page?

I write two column document. At some point I inserted table that is wide as page. But the text that goes under the table, in two columns are not aligned i.e. text in left column continues one or two ...
33 views

### Direct-speech alternative quotation in Italian

I am currently using quotmark with guillemots (standard Italian), but I would like to switch to "alternate" way to represent direct speech, which is (IMHO) much nicer. direct speech starts with em-...
26 views

### Font size of entries for LoF and LoT in ToC

I have a problem with the font size of the entries for List of figures and List of tables on the Contents index. If I change the fonts for the titles of LoF and LoT, the same changes are applied in ...
20 views

### How to prevent additional space after a table?

I have a table and I was not able to remove additional space that exists after the table's caption. \begin{table}[ht] \raggedright \begin{tabular}{l|l} ... \hline \end{tabular} \...
29 views

### Centre column head with siunitx

Consider this example \documentclass{report} \usepackage{siunitx} \begin{document} \begin{tabular}{l S} A & {sf}\\ 0 & 9887779.1\\ 0 & 9999.1 \\ \end{tabular} \end{document} In ...
4 views

### Images disappearing when compiling with tex4ebook

I am trying to convert an existing book from plain PDF output to ebook format for online publishing (and doing some reformatting in the process, but that's another question). I have images in the \...
30 views

### pgfplots: How to set xticklabel as two line?

I want to design xticklabels as two line texts: First line: Date, e.g. \month/\day Second line: Time, e.g. \hour:\minute Minimum Working Example (MWE): \documentclass{standalone} \usepackage{...
43 views

17 views

### full width longtable in tufte-book, like table* environment

I am using pandoc to create a tufte-book latex. pandoc's tables are rendered using the longtable environment. Within tufte-book this only uses the \textwidth. Wrapping it in a fullwidth environment ...
284 views

### Draw a pulley system

Consider: I need to draw a pulley system as in the figure. How can I do that? \begin{tikzpicture} \fill[pattern=north east lines] (-3,0) rectangle (3,.3); \draw(-3,0)--(3,0); \draw(-2.5,...
23 views

### How to enable contextual substitutions in lstlisting?

Fira Code (available via its GitHub Release page) not only provides fancy programming ligatures (see Use Fira Code font with ligatures in code listings), but also contains contextual substitutions. ...
8 views

27 views

### How can I create a two-page spread of a tabular environment?

I want to make a teacher's lesson planning book. (You know the story: I've never found one I liked, so I want to make my own.) To do this, I need a planning grid that spans a two-page spread, with the ...
43 views

### How can I simplify an equation in LaTeX?

I am new to LaTeX, and I am using OverLeaf. I am trying to typeset simplifying the equation u+v-w=p*r+q*s-(q-p)*(s-r)=p*s+q*r. I tried: \begin{align} \left\ u+w-v &= p\times r + q\times s - ...
12 views

### Error interacting with visualization depends on with values and pgfplotstable`

Problem When changing the values of the markers on a scatter plot using the visualization depends on key and when the data comes from a \pgfplotstable the marker printing is broken. If I have the ...
17 views

### function multiple lines into box

I'm trying to write the Leapfrog integrator for Monte Carlo Hamiltonian, but I can not properly align each of the rows, any suggestions please. Expected Output: My code: \documentclass[12pt,a4paper]...
35 views

### \newenvironment without using environ package

I want to create a new environment without using the environ package, which conflicts with other packages that I have. I can create the command like this when using environ package. \NewEnviron{...
43 views

### Young tableaux and braces

I would like to use the following drawing in my memoir: \begin{figure}[!h] \centering \begin{ytableau} ~ & \none & \none & \none & \none \\ \none[...
34 views

### Add a vertical bar to specific pages using TikZ

I use a template that creates a document with two pages. The first page has a vertical bar and the second page has a horizontal bar. I would like to extend this template in order to add an arbitrary ...
29 views

### Lualatex/Japanese document compiles fine in TeXstudio, but not MacTex

I'm having trouble compiling the following document. I have done a fresh install of MacOS 10.14 and installed the full size MacTex 2018 distribution directly from TUG. I have also upgraded all ...
43 views

### Sizing table to page

Apologies for a general question but I need some help strategizing about how to include a fairly large amount of data in an article document. Basically I have several 35x35 matrices that I need to ...
30 views

### Trouble with the “initials” package [Solved]

EDIT: Many thanks to Bernard for solving the issue. I needed to refresh the font map files. I've been trying to experiment with using LaTeX for more than just math papers, and I thought I'd try using ...