All Questions

Filter by
Sorted by
Tagged with
119 votes
7 answers
26k views

What are the relative strengths of TikZ and Asymptote?

I want to compare TikZ and Asymptote for their abilities in 2D & 3D functional plot and other general purpose, simple drawings. What are the strong aspects of TikZ over Asymptote?
0 votes
0 answers
8 views

How to centralize text inside this table, increase the columns height and create a column divide in two with a diagonal line?

Well, I have been struggling for a long time with this single table. I would like to create a fancy table for the patients, colored and beautiful. I tried to centralize the text, however, I am always ...
1 vote
1 answer
11 views

Why I can't input the equal math symbol "=" in tikz-feynman?

I input $p+p'=q+q'$ as the label of the momentum, then TeX returns me the error below Missing $ inserted. <inserted text> $ Missing } inserted. <inserted text> } Extra }, or forgotten $...
1 vote
1 answer
155 views

TexShop not compiling for all users on a machine using Big Sur 11.1

After installing MacOS 11.1 Big Sur, I upgraded TeXShop and MacTex (Basic is not sufficient). There are 3 tex users on this machine and TeXShop works well for two of them. For the 3rd, TeXShop opens ...
2 votes
2 answers
92 views

TikZ tree alignment with multiline node labels

I'm trying to create a tree structure in tikZ, it looks not too far away from what I want, but a few problems are there: The labels are multiline, which seems to somewhat break the alignment of the ...
1 vote
2 answers
18 views

How to add vertical braces to a matrix showing different groupings of the elements?

So, I am currently trying to do this: And this is what I tried so far, \[ \left[ \begin{array}{c} \left.\begin{matrix} x_k \\ y_k \\ v_k \\ \psi_k \\ \end{matrix}\right\} s_k^p \\ \...
12 votes
2 answers
4k views

Create a footnote in node in a tikzpicture

I would like to add a footnote to a node in a TikZ picture, but every solution I could imagine fails. I tried using a minipage, too. \documentclass[a4paper,10pt]{scrartcl} \usepackage{tikz} \begin{...
0 votes
0 answers
13 views

Align tikzpicture with textwidth

i have this tikz graphic, but sadly it doesnt align with the textwidth. How can i accomplish that? \documentclass[12pt]{article} \usepackage[onehalfspacing]{setspace} \usepackage[left=3cm,right=3.5cm,...
2 votes
1 answer
102 views

ConTeXt unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua'

Updates & Inclusion of info asked in comments: (in reverse chronological order) 4. (self) Run logs after cp texlivecnf.lua texmfcnf.lua On looking at selfautoparent:/texmf-context/web2c/ (as the ...
568 votes
5 answers
356k views

How do I use a particular font for a small section of text in my document?

The standard font packages make global changes to the fonts in my document. What if I want to use a particular font for just a portion of my text? How do I find the right name of the font? How do I ...
3 votes
2 answers
39 views

Why explicitly and inexplicitly declarated nodes produce edges with different length?

The following code block contains a minimal working example. The first TikZ drawing uses explicitly defined nodes. The second TikZ drawing doesn't use explicitly defined nodes. I thought that these ...
0 votes
2 answers
62 views

How to draw the shape shown in the below image?

\documentclass[12pt]{article} \usepackage{tikz} \usepackage{tikzpagenodes} \usetikzlibrary{arrows, shapes, positioning} \begin{document} \pagestyle{empty} \begin{tikzpicture}[remember picture, overlay]...
1 vote
0 answers
11 views

Positioning or margin problem in a0poster.cls

I‘d like to build a template for posters with a0poster.cls (https://www.ctan.org/tex-archive/macros/latex/contrib/a0poster) and started setting up the background. Why are the positioning commands not ...
0 votes
1 answer
87 views

List of acronyms as an input of a separate file .tex and not in the main

I'm trying to have a list of acronyms in my paper, but since it will be really long I don't want to write all the \newglossaryentry in the main. I tried to create a separate .tex file and use \input{} ...
1 vote
1 answer
49 views

Beamer Name of Currently Active Theme

Is there a way, in beamer, to get the string name of the currently active theme? I want to write a class based on beamer that (1) loads a specific theme if the user didn't specify one and (2) performs ...
1 vote
1 answer
38 views

How do I make a good northeast arrow to represent continued fractions?

I'm taking notes on a book which represents continued fractions like this: When I'm doing this in LaTeX, I've been using \nearrow, but that looks more like this: I don't love how everything is on ...
2 votes
2 answers
398 views

Is it considered bad practice to use both Asymptote and TikZ in the same document?

I'm something of a beginner in both Asymptote and PGF/TikZ, but I'm a bit better at Asymptote, and so I generally find Asymptote easier to use. However, I find Bezier curves a bit easier to control ...
1 vote
2 answers
28 views

How to assign only one number to an equation with multiple lines?

As is shown in my code, I used eqnarray but got two numbers. So I tried the method here by using equation and array instead. But I got error messages: "Package array Error: Illegal pream-token (\...
16 votes
1 answer
34k views

Including figures relative to the path of the current document?

I am writing a paper simultaneously with my thesis; the paper will be included verbatim in the thesis (or at least, parts of it will). I am looking for a solution that allows me to update my paper ...
0 votes
2 answers
137 views

table for two pages in single column format

I want to create a two page table in single column document format but I m failed to do so. I have already used "longtable" and "supertabular" usepackages but no result please suggest me how can I ...
0 votes
0 answers
26 views

How do you generate geometric figures and sketches [closed]

I'm just starting to use LaTeX to write my thesis and I find myself stumbling on how to generate nice looking geometric figures for sketches. Not necessarily a plot, but a nice sketch to convey an ...
5 votes
5 answers
172 views

Recursive macros revisited

Consider the following code \documentclass{article} \usepackage{xifthen} \def\question#1 #2 #3?{\ifx#1 #2 #3?\relax\else#1 #2 #3 or\expandafter\question\fi} \newcommand{\test}[1]{\question#1} \begin{...
2 votes
1 answer
23 views

Nested SplitList Problem for quick expansion

I'm thinking whether I can write a new command for quick inserting any number of small groups of vectors in vector space. Here is what I want: $\basis{x; u; v}$ will automatically resolve to: $x_1, \...
1 vote
1 answer
468 views

Generate standalone eps figures with tex labels substituted

Currently, I am using pstool and using psfragfig to include figures, which are eps format with labels in a separate tex file. \documentclass{article} \usepackage{graphicx} \usepackage{pstool} \begin{...
0 votes
0 answers
21 views

Minted and SVG package conflict

I've been a LaTeX user for quite some time and we can say that i'm a really advanced user. However today while writing my report i've got a problem while loading using the minted package : Loading up ...
2 votes
1 answer
95 views

Handling of pluralia tantum in glossaries

I have a term that does not exist in singular form (i.e., a plurale tantum) that I would like to abbreviate like ordinary acronyms. How should such a thing be handled properly in glossaries (if at all)...
0 votes
1 answer
46 views

Bibstyle: capital last names and seperated with semicolon

I need help with changing my bibstyle. I would like my bibstyle to look similar to the geschichtsfrkl style but would like to change the separation for multiple authors from "/" to ";&...
0 votes
1 answer
700 views

error with Libreoffice TexMath

I am experiencing a problem with TexMath extension for LibreOffice. This problem began when I installed the latest build of LibreOffice. I followed the instructions to download the texmath.oxt file, ...
1 vote
0 answers
36 views

Realistic spiral binders with tikz

I was viewing this thread recently, and was struck by a great answer provided by Gonzalo Medina (reproduced below). As good as this was, I think the output would look much better if this answer could ...
1 vote
1 answer
21 views

How to draw a colored Feynman diagram with tikz-feynman?

I am trying to draw the diagram below on latex. I am not sure where to begin. I searched a lot but couldn't find any resolution. Here's what I faced: It was easy to draw the line from left to right. ...
0 votes
1 answer
103 views

Numbering is off in TOC by the amount of pages of the Content

I use the following code to generate the "Contents" section of my thesis: \include{ch_abstract}\newpage\cleardoublepage \clearpage \tableofcontents \markboth{}{} \addcontentsline{toc}{...
2 votes
2 answers
791 views

markdown in LaTeX causes compiling issue

A generated lua file for embedding markdown cannot be found during build process. Hello I want to integrate a markdown file in my latex file. Firstly, I tried to run an example for it. However, the ...
0 votes
0 answers
14 views

Spacing of Frontmatter Chapters in TOC

I am writing an article document, and the first four entries in this TOC are my frontmatter sections. How can I adjust the spacing between them into single spacing just like the spacing in the ...
0 votes
1 answer
150 views

Centering section title in new environment

I have defined a new environment for the sections for a CV template. I'm not sure how to center the section title in this code. \newenvironment{rSection}[1] { % 1 input argument - ...
0 votes
1 answer
145 views

Combining glossaries and index?

I am working on a document where glossary entries are referred to from the index. This works, until I add conditional text, indicating whether a description was added or not. It looks like TeX falls ...
0 votes
0 answers
17 views

Setting dust jacket parameters using bookcover given a dust jacket template from printer

The following is a dust jacket template from the printer that I'm trying to follow using the bookcover package: The numbers in the template don't seem to add up between the 20mm wrap around, safety ...
0 votes
1 answer
96 views

Reformatting Biblatex to have a Format like Natbib?

I am using biblatex and have to get my literature displayed as below. For now I use : \usepackage[ %citestyle=authoryear, %citestyle = alphabetic, ...
4 votes
2 answers
93 views

Force error when lack of parameters [duplicate]

For example, I defined a macro \test with one parameter. Latex takes the first character following \test as its parameter by default. I want latex to throw an error if \test is called without any ...
0 votes
2 answers
50 views

How to increase space between diagrams

I have changed the radius of the circle and made them larger and am unsure how to change the space between them because they overleap. Thank you. \documentclass[tikz, border=5]{standalone} \newcount\...
0 votes
0 answers
26 views

Using list to right shift a paragraph without changing leftskip

\documentclass[a4paper,10pt]{article} \begin{document} \ExplSyntaxOn \NewDocumentEnvironment {Spar} { m m } { \list {} { \item[#2] \setlength{\leftmargin}{#1} } ...
0 votes
1 answer
101 views

Accented letters disappearing

Both É (upper case E with accent aigu) and é (lower case E with accent aigu) are disappearing. \documentclass[draft]{article} \usepackage{fontspec} \usepackage{hyperref} \usepackage{listings} \begin{...
0 votes
0 answers
44 views

Need help tikzing the following graphs

I just need help tikzing the following diagrams. I spent a while trying to align the coordinates and the labels, but it just won't work. If it's not too demanding, can someone tikz all of the ...
3 votes
4 answers
2k views

How can I change the default math-mode 'f' in the cochineal package?

I think the font provided by the cochineal package is excellent, and I want to write documents using it, so I use the following in my preamble: \usepackage[osf, p]{cochineal} \usepackage[cochineal]{...
0 votes
1 answer
34 views

Using CalcLength to mark points on a segments using tkz-euclide

I have the following: \documentclass{article} \usepackage{tkz-euclide} \begin{document} \begin{tikzpicture} \tkzDefPoint(0,0){X} \tkzDefPoint(2.5,-2){Y} \tkzDefPoint(2,1.5){Z} \tkzDrawPolygon(X,Y,Z)...
0 votes
1 answer
55 views

How to get caption below Fig x.y. and have control on the space separating the picture and the text

I need two things while inserting a picture in a document. First, I want the caption text to also extend below the word, say Figure 1.1. In my case, below Figure 1.1. there is no text. The caption ...
0 votes
1 answer
29 views

Right shifting a paragraph

Have been working on shifting the PAR. part as a shifted paragraph to the right by a certain amount (0.8cm in this instance). But the whole paragraph is not getting shifted as intended. Would like ...
0 votes
1 answer
29 views

Improving Arguelles, a beamer theme, circumventing the use of TikZ in background definition

I found a very neat beamer theme (Arguelles, https://github.com/piazzai/arguelles) however there are three things that I believe are troublesome with the theme. I am trying to improve them but I am ...
3 votes
0 answers
40 views

How do I penalize an orphan brace in a code listing?

I want to prevent my code listing and my tcolorbox from page breaking and placing only a single brace on the next page. See the image for an example of this. The page break in and of itself is fine ...
0 votes
2 answers
34 views

Improving Arguelles, a beamer theme, removing enumitem

I found a very neat beamer theme (Arguelles, https://github.com/piazzai/arguelles) however there are three things that I believe are troublesome with the theme. I am trying to improve them but I am ...
2 votes
1 answer
46 views

The position of one word is changing from one slide to another

I am using the beamer class. Here, I want the position of "BC" in the second and third slides to be the same. However, this is not the case. Why is that? How should I fix that? \...

15 30 50 per page
1
2 3 4 5
5163