All Questions

Filter by
Sorted by
Tagged with
1
vote
1answer
10 views

New command with cases / conditionals / 'if… then's

I defined a command to insert figures easier and according to some college formatting. It is working just fine, but I am having a problem trying to add a conditional statement. The command is this. %\...
0
votes
1answer
33 views

Capital Greek \mathtt not showing in arxiv

I need to write something like \mathtt{\Pi}, which renders nicely on my mac but both on arxiv and on coworkers' laptops does not work. How can i typeset \mathtt{\Pi} in any latex document? Bonus ...
2
votes
2answers
25 views

Negative amplitude signals on tikz-timing (Return To Zero)

I'm trying to do RZ with tikz-timing, like in the following picture. For that I tried using the high impedance timing character Z, like in this MWE : \documentclass{article} \usepackage{tikz-timing}...
0
votes
0answers
10 views
3
votes
1answer
2k views

figure environment doesn't work in poster latex

I am creating a poster and for some reason, this doesn't work: \begin{figure} \centering \includegraphics[scale=0.6]{Fig/pic.pdf}\\ \caption{BLAHBALH} \end{figure} It doesn't produce any ...
0
votes
0answers
8 views

Modernized Computer Modern

What about the mysterious Modernized Computer Modern font (mmo) designed by Alan Hoenig? Is it still downloadble? Has it been used somewhere, or withdrawn at all?
2
votes
0answers
25 views

Biblatex supress page prefix S. while using Citavi Publication Wizard

I am using the authoryear-icomp style and I am trying to suppress the page prefix S. at \autocites and replace them with a colon. Yet, I am getting Dummy (Heinrich 2013: S. 197) with this MWE: \...
1
vote
1answer
11 views

Listings - Hide range labels and suffix/prefix from code

I'm using listings to generate some code boxes, and am taking excerpts using range labels with suffixes and prefixes. I'm able to hide the begging tag from the full code by escaping to LaTeX and using ...
3
votes
3answers
395 views

Writing juridical documents with Latex

I would like to start building some juridical documents with LaTeX but the ecosystem is too big and I don't know where to start from! If someone could enlighten me, I would like to build documents ...
497
votes
20answers
384k views

How to include SVG diagrams in LaTeX?

I'm making all my diagrams in SVG format using Inkscape and then I export them to some other format (e.g. PDF, EPS or PNG). I wrote a short script that does this for me automatically, but I'd like to ...
-1
votes
1answer
48 views

How can I write the following reactions and label them?

I would like to write those following reactions and label them like equation mode. How can I do that?
0
votes
1answer
10 views

! Missing } inserted error in equation/split

I have the following equation. \begin{equation} \begin{split} E_\textrm{el}&=\sum_{i}^{\textrm{occ.}}n_i\bra{\psi_i}H\ket{\psi_i}+\frac{1}{2}\sum_{\textrm{A,B}}^{}\sum_{l\textrm{(A)}}^{}\sum_{l'\...
31
votes
3answers
170k views

Blocks in Beamer

I want to put boxed text/block in Beamer and my LaTeX source is \documentclass[pdf]{beamer} \begin{document} \begin{frame} \begin{block}{Observation 1} Simmons Hall is composed of metal and concrete. ...
6
votes
2answers
150 views

Define a command differently in inline vs display mode

I would like to have a command \catlim which behaves differently in inline vs in display mode. Namely, in inline mode, it should be equivalent to \lim and in display mode, it should be equivalent to \...
0
votes
2answers
58 views

How can Ι align the items in enumerate environment?

I use the enumerate environment and I wanted some items to be in the same line with horizontal numbering. I don't want use the multicol or tasks packages and so I found the following code: \...
2
votes
1answer
13 views

Missing font 'zplsups-Regular-t1' after Catalina update on macOS

I seem to be missing some fonts since the Catalina update. Minimal failing example: \documentclass{article} \usepackage{newpxtext} \usepackage[T1]{fontenc} \begin{document} Error at footnote number ...
0
votes
1answer
12 views

How to redefine a varioref macro?

I want the final line of this example's output \documentclass{article} \usepackage{blindtext} \usepackage{varioref} \begin{document} \label{text1start}\blindtext[5]\label{text1stop} \label{...
14
votes
4answers
3k views

How to represent the “Triangle of Power” in LaTeX?

So, I've just seen a video about a method of notation called "Triangle of Power", which simplifies things when it comes down to exponents, logarithms, etc. It was originally introduced in this post on ...
2
votes
1answer
18 views

How to change the colormap in quiver?

I have made this quiver plot with pgfplots: \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat = newest} \usepgfplotslibrary{colormaps} \begin{document} \def\...
1
vote
1answer
38 views

Easily remove page numbers for blank pages (book class) [duplicate]

Edit: it was suggested that there is a case of duplication. There is no case of a duplicate, because this question specifically concerns only removing page numbers on supposedly empty pages, while the ...
0
votes
0answers
13 views

Springer Bibliographystyle: References in paper text too long and without brackets

I have to write a paper with Springer Bibliographystyle. I do \cite{khan2013} and receive this in the text: Khan, Muhammad Naeem Ahmed and Khalid, Muhammad and ul Haq, Sami (2013), That is ...
1
vote
1answer
21 views

BibTeX entry including “Foreward by”?

What is the best practice for including "Foreward by" (or its equivalent) for @BOOK entries in BibTeX? The problem with NOTE = is that it appears at the end of the typeset entry whereas I'd like it ...
8
votes
1answer
597 views

too much space between two environment create with tcolorbox

i want write a maple book, see this example code in that book: ‎\documentclass{article}‎ ‎\usepackage{tcolorbox,fancyvrb}‎ ‎\tcbuselibrary{skins,breakable}‎‎ ‎‎ ‎‎‎‎‎‎%--------------------------------...
0
votes
0answers
10 views

Square brackets around \footcite{} reference [duplicate]

How can I put the reference of \footcite{} between square brackets? I need it to look like a Wikipedia note. For example, the code The term foobar is used as metasyntactic variable.\foocite{wp:foo} ...
0
votes
2answers
18 views

memoir: headers for short and detailed tables of contents

The following memoir documentclass source produces two tables of contents -- a short one and a detailed one. (The difference is that only the latter includes subsections.) Question: How do I get the ...
2
votes
2answers
53 views

modifying default tabular behaviour

I basically do all my tables the same way: Is it possible to make tabular automate the \toprule, \midrule, \bottomrule and \hdashlines? \documentclass{article} \usepackage{booktabs,array,arydshln} \...
2
votes
1answer
34 views

Files not found because of \endlinechar (space) character

A recent MikTeX update broke some code that I'm using. I have many files filled with filenames, the code reads these filenames, and then does some stuff with the contents of the corresponding file. ...
0
votes
0answers
30 views

What's next?—Moving away from labbook as my laboratory notebook

I learned today that using labbook is probably not a good idea because it is problematic and has not been maintained in many years. This makes me sad because I've been using it for 6+ years. I'd ...
5
votes
2answers
40 views

Custom align environment which auto breaks line before = and aligns at =

\documentclass{article} \usepackage{mathtools} \DeclareMathOperator{\lcm}{lcm} \begin{document} \begin{align*} \lcm(13, 7) &= (13 \cdot 7):\gcd(13, 7) \\ &= (13 \cdot 7):1 \\...
1
vote
1answer
91 views

How to split a sheet of exercises in different files, one file containing just one exercise?

I have a big file having the following structure : \begin{exo} ... \end{exo} \begin{exo} ... \end{exo} My aim is to create different files containing just one exercice. How can I do this ? Does ...
2
votes
0answers
32 views

The best LaTeX distribution in 2019 for macOS?

Is MacTeX the best all-arounder LaTeX distribution at the moment or is it better to use MiKTeX, TexLive or something else that I don't even know. I'm looking mostly for an easy to install/uninstall ...
2
votes
1answer
107 views

Chemical standard state symbol with achemso article

I am completely new to LaTeX, but I know how to use the chemstyles package to generate the standard state plimsoll in a document that I am working on for, say, my students, etc. However, for ...
15
votes
3answers
5k views

Citation with DOI that has underscore breaks functionality in BibDesk

One functionality of BibDesk that is nice is the ability to click on a link at the end of the Doi entry field, which will open up the link http://dx.doi.org/DOI-HERE in a browser. One problem I've ...
1
vote
1answer
30 views

Making a table for layout and flow

I have some troubles with starting on a table for flow and layout. I would like to make it like this picture. Does anybody have a good idea? I have tried nothing and I am already out of ideas. Kind ...
1
vote
1answer
15 views

Binomial queue in forest?

I was hoping to get some help drawing a binomial queue with the forest package. All I can find are references to binomial trees, but I am looking to replicate this: I tried using phantom to make ...
0
votes
0answers
13 views

Italic font in custom command in LaTeX

I have the following custom command: \newcommand{\resumeSubheadingExperience}[6]{ \vspace{-1pt}\item \begin{tabular*}{0.97\textwidth}[t]{l@{\extracolsep{\fill}}r} \textbf{#1} & \...
2
votes
1answer
26 views

Why is tikz boxes started on different y-levels?

I've this code that suppose to draw a schedule/schema/timetable \documentclass[a4paper]{article} \usepackage[top=5mm, bottom=5mm, left=5mm, right=5mm]{geometry} \usepackage[utf8]{inputenc} \...
23
votes
1answer
40k views

“Paragraph ended before \Gin@iii was complete” while inserting image with \includegraphics

I'm trying to insert a figure into my LaTeX file using the following syntax: \begin{figure} \centering \includegraphics [width=3in]{fig1.png} \caption{Calculation of shortest path betweenness} ...
1
vote
0answers
13 views

How to insert an image and not get error message when resizing [duplicate]

Hi I am trying to insert an image in a document and have the width of the image be the same as the width of the text. I have included the following and cannot seem to get the display command to work....
0
votes
1answer
33 views

Bibliography after appendix

My main LaTeX file has the following structure: \documentclass[a4paper,11pt]{book} \usepackage{lscape} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage[english]{...
2
votes
2answers
28 views

Caption package with beamer changing tables to figures

I have a weird problem Whenever I use the caption package with beamer class on Mac OS (Windows works fine), Tables labels are changed to Figures (only started happening recently) .. I wonder what ...
0
votes
0answers
9 views

! File ended while scanning use of \caption@xdblarg. error

I wanted to compile my latex file and got an ! File ended while scanning use of \caption@xdblarg error without changing anything obviously in the code. I tried to look for missing brackets but couldn'...
0
votes
0answers
22 views

Typesetting a Gantt chart

so I'd like to typeset a Gantt chart like the one pictured below. It shoud go: Year>Month>Day of month, preferably with the orientation in the second image: What I get: My code: \documentclass{...
0
votes
1answer
37 views

Change chapter numbering in body and ToC

To change the numbering of chapters I have included this in the preamble: \renewcommand{\thechapter}{\Alph{chapter}} \titleclass{\chapter}{straight} \titleformat{\chapter}[block]% {\bfseries\...
1
vote
1answer
93 views

Hand position for typing in Latex [on hold]

As most of the users here, I spend a considerably amount of my daily time typing in LaTeX. I think that the typing position of the hands, at least for the US layout, should be different from the one ...
2
votes
1answer
27 views

Getting a proper reference number with \ref while using custom counter and environment

I am trying to make a reference-able environment with its own counter, that I later refer to in text. I want the counter of my environment to have the style Chapter.Number . I have been able to make ...
3
votes
2answers
34 views

Anchoring arrows

The arrow from the circle around the checkmark to the 1 starts within the circle, not its border, and its arrowhead pierces the border of the target circle. I would like, instead, for the arrow to ...
3
votes
4answers
53 views

Whitespace characters

I am defining a command that uses an subscript somewhere. I want the subscript to dissappear when I leave its corresponding command-input open, but then LaTeX will trow an error since no character was ...
0
votes
2answers
31 views

How can I organize the table and the image on a mini page horizontally?

I have the following code: \begin{minipage}[c]{0.35\linewidth} \begin{tabular}{|c|c|c|} \hline $X_{1}$ & Frecuencia & $P(X_{1})$ \\ \hline 10 & 37 & 0.4157 \\ \hline ...
0
votes
0answers
15 views

How do I get my output to fit into the gray box using knitr?

Some of my output is extending outside of the gray box by about 1-1.5 inches. How do I make the gray box bigger or the output smaller so it fits in the gray box and looks better?

15 30 50 per page