All Questions

173,961 questions
65 views

Drawing a ribbon graph

Given a graph like the one on the right side of the picture below, I want to draw a ribbon graph (that is, a "thickened" version of the graph) like the one on the left. I already drew the graph using ...
41 views

Omitting the following parentheses

\documentclass{beamer} \usepackage{pifont} %\usepackage{etoolbox} (this is necessary for old beamer versions) %\usepackage{graphicx} %\usepackage{color} \usetheme{Madrid} \newtheorem{...
28 views

pgfplots: Using “x filter” to decrease point density of plot

The user esdd has posted a nice approach on how to increase point density for a certain range of data points while the remaining plot keeps low point density by using x filter. Minimum Working ...
44 views

Force figure placement in text doesn't work in 'gji' document class

I have a problem with placing the figure. It is placed differently than in the code. In the article document class I use [h] specifier from the float package, but in the gji class it doesn't work. (...
96 views

Resize vertical bars (absolute-value symbols)

I tried that \middle, \,\middle|\, and \mathrel{\Big|}. I read How to automatically scale \mid within delimiters and \usepackage{mleftright} \usepackage{amsmath} \begin{document} ...
20 views

Fontspec compilation error with MacTeX-2018

Fontspec (and several other packages) were not working. I reinstalled MacTeX-2018, but the same errors keep coming up (see below). l3kernel & l3packages are both installed. All packages on TeX ...
28 views

Check whether section/subsection is longer than one page

I have defined myself a small (probably disgustingly overcomplicated) command to reference parts of my document and add the respective page number to the output if the referenced part is on a ...
29 views

My citations are not ordered as they appear in the text

I am using natbib package with following options. However, citations are not ordered in text as they appear. For example the first citation is not numbered [1] but it is numbered as [17] in text. \...
37 views

Why is the x getting italicized? [on hold]

The first x in A intersection B is not italicized whereas it is for the symmetric difference when exported to PDF. A \cap B = { x \vert x \in A \wedge x \in B } \\ A \triangle B = { x \vert x \in A \...
34 views

How to make a simple line with two sided arrow? [duplicate]

\documentclass[aps,amsmath,article,amsfonts,11pt]{revtex4} \usepackage{graphicx} \usepackage{epstopdf} \usepackage{epsfig,graphicx} \usepackage[english]{babel} \usepackage{amsfonts} \usepackage{...
33 views

How to move the lines in arrays

I wanted to apply Ruffini's rule but since I'm using fractions it's all crowded and messy. Is there a way to leave more space between the lines? \begin{equation*} \begin{array}{c|c c c|c} ...
13 views

How to make a bar chart where the boxes are on both sides of a given line?

I want to make a chart where I show sensitivity, and how a change in values for different parametres (A-G) will affect the total cost. First, I made a chart where I show the change at the x-axis, but ...
40 views

Fit (vertically portrayed) image with the caption displayed below

So I have this code: \begin{figure}[H] \centering \includegraphics[height=\textheight, width=\textwidth]{similar_waveforms_filtered_and_cut_new} \caption{Seiemic traces for events studied in ...
33 views

How can I write a long equation in two lines and name it?

\begin{eqnarray} \tag{A8} 2x+3y+4z+2u+7o+8k+90l+43+56+45p+33h \nonumber \\ &+& 89n+90m+34j+23a+45b+56f \end{eqnarray} But I am not getting the required equation with name A8. If anyone ...
48 views

How to fit content of minipage dynamically within a standalone?

I'm trying to create a standalone but the content won't fit inside. I think \minipage{\textwidth} causes the issue. I know I can set e.g. \minipage{21cm} but I want to keep this dynamic since the ...
17 views

TeXstudio, no preview pdf file after compiling with User Commands

I have similar problem as the person who asked this question (TeXstudio, no preview pdf file after compiling using User Commands), which was not solved. Since I use package minted to insert Python ...
25 views

Widen a landscape table

Any idea on how to make this landscape table wider (i.e. more extended across the width of the page) \begin{landscape} \begin{table}[] \centering \caption{Value of the force local maximums (F\...
64 views

Plot data from external file with floating numbers

I found yesterday this beautiful simple code: \documentclass{article} \usepackage{pgfplotstable} \usepackage{pgfplots} \pagestyle{empty} \begin{document} %\pgfplotstabletypeset{data.dat} \vspace{...
34 views

Typing equivalent equations side by side using tabular

I need your help in the following: I was trying to write two equations side by side and I was able to achieve this. However, these 2 eqts are equivalent so I need to add an equivalent sign between ...
109 views

How to draw this diagram/graph using tikz?

I have this diagram, and I have tried to draw it doing every dot and line, but I was wondering, is there a way to do it with foreach cycles or something like that? thanks.
39 views

Fraktur (blackletter) typesetting with certain automated features?

This question is somewhat related to this one. Background: I have a book from 1855 (Faust) of which I'd like to create a kind of facsimile version. At this point it isn't too important to make sure ...
27 views

Using variables in custom class

I am working on a custom document class for my faculty. When creating the frontpage I want to have some custom variables. Such as title, author, supervisors etc. I was able to do it in a single ...
21 views

Using different fonts for multiple languages in Overleaf

I'm using Twenty Seconds Resume template in overleaf https://www.overleaf.com/latex/templates/twenty-seconds-resume-slash-cv/mhyfwrmwjkbc But I met a problem and I can't solve it after trying for ...
26 views

Define variables in document so that macro definition goes into preamble

I've written some macros to add OMR characters to the generated document. The OMR characters are needed for an envelope inserter machine. When I want to print OMR characters for a double-sided ...
31 views

Where are wrong in xmin and xmax of this code?

In following code, I used xmin=-2.5, xmax=4.2, but the output got incorrect result. How can I repair? \documentclass[tikz,12pt]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.16} ...
87 views

Output Devanagari (Hindi) from raw unicode using luatex

I can get the following code to compile, using luatex, with the Hindi/Devanagari characters correctly printed in the pdf: \documentclass{article} \usepackage{fontspec} \setmainfont{Times New Roman} \...
42 views

How to extend the elements package to print melting and boiling points?

To my propose I would like to extend the elements package to print too the melting and boiling points of chemical elements. Using the same logic used in elements package, I thought about creating ...
91 views

How to write non-numerical content into an S-type column from siunitx package?

What is wrong with this table? I think there is something wrong with $\si{\degree}$. \documentclass[a4paper]{article} \usepackage{amsmath, amsthm, amssymb, mathtools} \usepackage{siunitx} \begin{...
34 views

Adding Labels and arrows in Tikz graph

I'm trying to do something similar to this epsilon-delta graph I've found. Specifically, I'd like to copy the placements and arrows, like the L+e and L-e coming out of L. Same thing with the x0 + d ...
50 views

Cylinder. OXYZ. 3D Cylinder . cylinder with dots [duplicate]

i whant help with drowing cylinder in 3d with dots(p1,p2,...pn) on both side cylinder
56 views

What is a reasonable course to convert a novel from latex to epub/azw?

I need to convert a novel (NO math, but lots of citations and direct speech) from current PDF/printed paper to high-quality epub/azw4 to publish as eBook. Current layout is based on memoir and ...
20 views

ntheorem and LyX (with amsmath)

Recently, I tried to use the ntheorem package with LyX and amsmath, but when compiling (pdflatex format) it complains: "! Package ntheorem Error: Theorem style plain already defined." When exporting ...
21 views

How to use Biber with BibLaTeX from the command line on osx

I am attempting to use Biber with BibLaTeX from the command line on osx. When I compile my .tex file I get No file print_bibliography.bbl. LaTeX Warning: Citation 'Huse2007' on page 1 undefined on ...
32 views

Differences between \documentclass[spanish]{article} and \usepackage[spanish]{babel}

This is my second post in latex-SE. Here is a very (I think) basic question, but I could'nt find a precise answer yet: What exactly does the command \documentclass[spanish]{article} and what sets it ...
32 views

Modifying arcarrow

I have found this PDCA cycle (plan, do, check, act) here http://www.texample.net/tikz/examples/pdca-cycle/ % PDCA cycle % Author: tikzanfaenger, Helmut, and Bartman \documentclass[tikz,border=10pt]{...
60 views

How to transform dynamic data into static data

Maybe I asked this somewhere sometime ago. Is there a way to change dynamic data into static data? I have defined the macro \def\date{\the\day.\the\month.\the\year} With every run of TeX the ...
25 views

Mathjax: use the parameter in the \style [on hold]

Please tell us this is acceptable? I wrote the following sample: <script type="text/x-mathjax-config"> MathJax.Hub.Config({ showProcessingMessages: true, jax: ["input/TeX"], tex2jax: {...
42 views

Vertical spacing in table

I am trying to create a table, but inside has some mathematical fractions which is too wide for the table. Originally I used arraystretch 1.4, the vertical space is too tight. So I wanted to stretch ...
58 views

Diagram, 4 dots. (knot theorem) [duplicate]

How to drow this in teXstudio? I cant draw dots and arrows like that
20 views

probsoln error: “undefined control sequence \repeat” in a loop

For context, I am using the probsoln package to create a list of problems and solutions. The problems and their solutions come from files in the same directory titled bank_lesson1.tex, bank_lesson2....
24 views

Hyperlink at Beamer for external files

I need to do hypperlink to external file to hyppertarget in it . is it possible to do this ? I read about href and url ,but I didnt find info about this . Tex file with hyppertarget will be placed in ...
97 views

Dots and lines (knot theorem) [duplicate]

How to draw this in TeXstudio? help me please.
19 views

How to get rid of parenthesis that appears in year on the reference list using dcu.bst Harvard citation style?

I am using \bibliographystyle{dcu} for Harvard style citation, I want to get rid of the parenthesis from the dcu.bst file. How can I remove the () parenthesis around the year that appears in the ...
57 views

Stata, Python, MS office logos (wordmark/typeset) in LaTeX list or TikZ?

Curious if anyone has built Stata, Python, or MS Office logos/wordmarks/typeset in LaTeX or TikZ? For example, this has been nicely done for R here: New R Logo with Tikz Similar to hologo and dtk-...
78 views

How to save space when writing equations with cases?

I am writing in IEEE double column environment. I have some equations with cases. For example, this equation seems to have too much space after the brace and also before and after the commas. I was ...
20 views

How can I have an additional "source'' caption in a table redefined with renewenvironment`?

I had tables working well with a regular caption above and source information below each of them: After implementing a solution given in https://tex.stackexchange.com/a/485538/91816, the captions ...
16 views

Algorithm2e: Using function name (as formatted ) in the caption and in the document text

In algorithm2e how can I use the function name (as printed/ style) in the caption and any other part of the document. I notice using the "\FUNNAME" ,in general, sometimes works and sometimes do not. ...
45 views

Emoji insertion in latex pdf

Here is my code in latex file \begin{filecontents*}{example.eps} \RequirePackage{fix-cm} \documentclass[smallextended]{svjour3} \smartqed \usepackage{graphicx} \begin{document} \...