All Questions

1
vote
2answers
23 views

\hookrightarrow with ebgaramond-math

I'm using the font EB Garamond for a document I'm typesetting, but it seems that \hookrightarrow only renders a normal arrow. Here's the code I'm using: \documentclass{article} \usepackage{amsmath} \...
0
votes
0answers
22 views

Extracting information from multiple LaTeX (Beamer) documents

I have a number of slides prepared using LaTeX Beamer. They all belong to the same lecture series. Now, I would like to dynamically generate a Table of Content based on those multiple slides. The ...
0
votes
0answers
7 views

read_chunk doesn't work

I tried the code suggested previously which should work execute R code in latex file imported from separate R file but I can't see the external-code from R. Here's my script \documentclass[12pt,...
0
votes
1answer
10 views

Table an picture in a Figure

I am trying to put a table and an image next to each other in one figure. But the image aligns strangely with the table and I can't seem to figure out how to fix it. I tired putting each into an entry ...
4
votes
1answer
25 views

Cleverref with clrscode3e

I would like to make use of the advantages of the cleveref package also for pseudocode I write. More precisely, I am looking for a way to get the cleveref package to work with clrscode3e such that ...
1
vote
0answers
16 views

Correct spacing before and after a Theorem

I would like to develop a small environment for a "theorem" very similar to what amsthm provides. Unfortunately, I cannot use this package for legacy reasons within the document. But I struggle to get ...
1
vote
0answers
15 views

Vertical lines in table only appear on first and last row

Creating a table in LaTex and want the columns separated by a vertical line. \begin{table}[htbp] \centering \caption{TestTable} \begin{tabular}{c | c} Sample & \multicolumn{1}{l}{Data}...
1
vote
2answers
34 views

verbatim listing with trailing spaces

I'm trying to redefine \verb just for fun. It should act like the LaTeX starred version: \verb<some-char><arbitrary chain of chars not containing it><same char again> should yield ...
0
votes
1answer
20 views

Beamer: Onslides messes up tcbraster

I have issues with my beamer presentation: I want to have 3 boxes next to each other, they should first appear all at the same time and then I would specify when the boxes should appear. Without \...
2
votes
1answer
47 views

Italicising “et al.” in references when using Harvard package / citation style

I'm relatively new to latex and this is my first post here, and I've tried to include a minimum working example below but I'm not sure if i've done it right. My main question is regarding the use of ...
0
votes
2answers
20 views

combining ifthen with FPeval - problem

if i use \FPeval{\one}{\csname test1\endcsname} everything is fine. If i use \FPeval{\one}{\csname test1\endcsname+\csname test2\endcsname} in \ifthenelse, then i get en error. \...
1
vote
1answer
17 views

On a single “sidewaystable” page, how to have a tabular environment on top and a few figure environments below?

So, What I want is to have a sideways table and few figures below it. In a single page. As you would know it, it shifts figure on the next page. This is the dummy version: \clearpage \begin{...
0
votes
1answer
29 views

Why I get opposite brackets at listing code?

I'm writing Hebrew document and the brackets at the code are opposite. They are ok at the regular mode but when I change the font style the brackets became opposite: And here is MWE: \...
0
votes
1answer
20 views

Use of \@next doesn't match its definition

I get the error: Use of \@next doesn't match its definition With the following TikZ code: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \coordinate (A) at (0,0); ...
0
votes
0answers
20 views

auctex does not seem to be loaded

I have basically the same issues as described in: Cannot load preview-latex despite AUCTEX already installed and in this post nougako did not seem to solve its problem. I have emacs 26 (to which I ...
0
votes
1answer
32 views

Footer too high with scrlayer-scrpage

my footer is too high. I'm creating a new template and now im using scrlayer-scrpage. In my last template, i used fancyhdr. Where is the mistake? it is a difference about 2,5cm !! \documentclass[12pt,...
0
votes
0answers
25 views

Aligning content in multirow

I want to write a document, where i group two plots and the two functions corresponding to the plots together. There should be two such groups aligned next to each other. Here is a picture of what i ...
6
votes
3answers
891 views

How to write this math term? with cases it isn't working

I can't find a way to write this in Latex. Any hints where to start?
0
votes
0answers
64 views

Replacing all custom macros and standardizing papers written in TeX [duplicate]

I would like to be able to replace every single user-defined macro in papers written in TeX by its definition. That is, if TeXing is considered to be a function f and my standardizing script is ...
0
votes
1answer
28 views

How can I export an xmgrace graphic to Latex?

I´ts basically that, but I don´t want to be an PNG or JPEG format, because when I scaled it becomes ugly.
1
vote
1answer
24 views

Summation of matrix elements / table cells

Using the following code \documentclass{beamer} \beamertemplatenavigationsymbolsempty \usepackage{verbatim} \usepackage{tikz} \usetikzlibrary{calc, fit, matrix} \begin{document} %begin matrix autofit ...
0
votes
0answers
31 views

How to manually update to tcolorbox 4.2?

I am compiling with a MacTex installation with packages managed by TexLive. There is a bug in the tcolorbox package that has been fixed in the latest release; v 4.20. I am in fairly urgent need of ...
2
votes
1answer
39 views

Error missing {

Im getting this error in the heading of a table and two formulas, previously I had typped other formulas without errors. This is the code: \documentclass{article} \usepackage{mutavel} \usepackage[...
0
votes
0answers
34 views

My document's output is shaking rapidly when I try to build and view the document. Using Texstudio [on hold]

The issue can be seen here. It seems as though the recorder didn't work that well because in reality it is shaking much faster, but you get the idea. I have no idea why it is happening or what is ...
1
vote
1answer
39 views

Unexpected error message (Undefined control sequence. l.18 \xwm@secstopagerange)

The following basic TikZ code is throwing the compilation error via PDFLaTeX: ("C:\fakepath\AppData\Local\Programs\MiKTeX 2.9\tex/generic/pgf/frontendla yer/tikz/libraries\tikzlibrarytopaths.code.tex"...
1
vote
2answers
45 views

Add a randomly generated number to a latex document to discourage cheating on an exam

I am trying to cut down on a particular kind of cheating during my in-class exams. What some students are doing is taking pictures of the exam (while I am looking somewhere else), and uploading them ...
4
votes
1answer
1k views

What font is “z” in “z-score”?

I noticed that the letter z is different from other font. Is there any special command for this?
0
votes
0answers
14 views

Bussproofs compact prooftree

I have the following code: \begin{prooftree} \AxiomC{$\Gamma $} \AxiomC{} \LeftLabel{($\to$-elim)} \BinaryInfC{$\Gamma , x : A, y : C \vdash x y \Leftarrow D$} \AxiomC{} \...
0
votes
0answers
32 views

Centering within a template

I am using DeCorte template for Resume https://ctan.org/pkg/res?lang=en. I am trying to put some text in the center of the document by \documentclass[margin, line]{res} \begin{document} \begin{...
8
votes
1answer
519 views

Old style “caution” boxes

Technical manuals from the 1960s and 1970s sometimes had eye-catching CAUTION boxes surrounded by wavy or curly lines. My best attempt at re-creating this is not ideal as I can't get the snake to ...
0
votes
0answers
28 views

playing mp4 file inside beamer

I have an mp4 file I would like to use in my beamer presentation. My MWE is below. \documentclass{beamer} \usepackage{multimedia} \begin{document} \begin{frame}{Sound example} \movie[width=...
0
votes
1answer
21 views

How to center text in figure with subfigs

Say that I have this code: \documentclass[12pt,a4paper]{article} \usepackage{graphicx} \usepackage{subfig} \begin{document} \begin{figure} \textbf{Text I want centered} \\ \subfloat[Image]{\label{}\...
2
votes
1answer
18 views

Subcaption + clevered range parentheses

I'm trying to have subcaption labels of the form (a), (b), etc. references of the form fig. 1(a), and ranges of the form figs. 1(a--c). I cannot seem to get the last requirement. Here's my MWE (...
2
votes
2answers
47 views

representation of vector and matrix in latex

i'm working on my latex thesis and i want to represent this equation, matrix is upperCase letter with 2 lines under it, and vector just one line below, see the picture attached can someone help me ...
1
vote
1answer
21 views

How to put siunitx units in a parenthesis or an equation?

I want to put units in an equation. Someone published a paper with units written that way. I need to mimic that. A simple case would be: \begin{equation} a = \si{\ell}{(\cm)} \end{equation} or \...
1
vote
0answers
39 views

How to enable old ligatures, long s in LaTeX?

How would you enable quaints (old-style ligatures) in LaTeX? E.g. the st, ct, sp ligatures &c. Is there also a way to contextually put in the long s (ſ)? Keep in mind that Overleaf won't let me ...
1
vote
2answers
44 views

Miktex \printindex doesn`t work

I use MiKTeX 2.9 and use{imakeidx } for doing list of indexes in beamer. but I have the message in log: No file "DM2019_7 (2)".ind. [103 ] In texstudio it works . Please help. Example : \...
2
votes
0answers
19 views

Hyperref of expex examples

I would like to have a hyperlink to my examples created with expex The use of \label and \ref produces the correct number, but the it links to the whole subsection and not to the example. \...
0
votes
2answers
24 views

Is it possible to include files in a custom texstudio template?

I am trying to create a TexStudio template for my University rapports in which I want to include a watermark and a logo for my title page. Is there a way to include these .png files in the template (...
0
votes
0answers
19 views

Beamer: passage to 16:9 aspect ratio

I have a few questions regarding the passage from the default 4:3 ratio to 16:9 one. 1) Is it necessary to use 16:9 aspect ratio for presentations? 2) What is the difference between: \...
0
votes
0answers
18 views

How to use apacite (or similar) without running titles in headers getting modified?

I am using a custom .cls file with its own implementation for running text in headers in the corners of all but the first page. The .cls file I am using was taken from this Overleaf template: https://...
1
vote
1answer
37 views

How to draw a line on a ball?

Basically I want to draw a line from the tip of the z-axis vector to the tip of the red vector. I do not quite know how to do this. This is the code I have so far, I hope someone has an idea on how to ...
1
vote
1answer
20 views

Aligning a rightarrow with path between images in tikzpicture

I would like to know if there is a better way to align the right arrow between Fig 1 and Fig 2. Currently I was able to do it with node[right=2cm]. I wonder why I wasn't able to use the node[midway] (...
1
vote
1answer
37 views

fixing the rotated columns such that they'll take less space

I have a camera ready deadline today. How can I fix the following table such that columns gets fixed and also use less space? It is CVPR 2019 conference. \newcommand{\rb}[1]{\rotatebox{80}{#1}}% \...
1
vote
1answer
26 views

Creating a titlepage: two figures in one line (left and right)

In order to create a title page I would like to include two logos in one line where one of the figures is left and the other is one the right side. My first minimalistic examples using the following ...
0
votes
0answers
36 views

Converting from natbib to biblatex

I want to use chicago manual style, which does not seem to be available for natbib, so I want to use biblatex instead. Since I have in-text citations, I followed the previous answers and tried this: ...
0
votes
1answer
26 views

How to fix clash between pdfpages/graphicx and invoice package on overleaf

How to reproduce clash? Use this template: https://nl.overleaf.com/latex/templates/invoice-template/rpdlzpjmkfmj Add \usepackage{graphicx} or \usepackage{pdfpages} Actually now that I test it, ...
1
vote
1answer
44 views

Tikzlibrary package in the beamer

I'm trying to use the tickz package in beamer, but the bug is appearing Missing \endcsname inserted The code of the diagram I'm drawing is \documentclass{beamer} \usepackage[utf8]{inputenc} \...
1
vote
1answer
26 views

Add a box around text

I am trying to add text inside a box like this: ------------------------------------------------------------------------------- # This is the section I am looking to do. Paragraph here 1. point 1 1....
1
vote
1answer
10 views

Elsarticle-harv : \citet{bibid} adding parentheses to year

While citing multiple articles, I'm trying to get the following format (AuthorsAB, Year; AuthorsCD, Year; AuthorEF, Year) However, even with using \citet command, the output includes parenthesis ...

15 30 50 per page