All Questions

0
votes
0answers
4 views

splitting packages into multiple files

I am writing a package, which is growing very rapidly. I would like to split into multiple files, and so I thought for example, that I could define all my counters in a separate file. \input{...
1
vote
1answer
9 views

Forward search with vim-latex and evince

OS: Ubuntu 18.04 LTS Bionic texlive version: 2019 Vim version: 8.1 , big Vim Plugin Manager: pathogen Vim Plugins: vim-latex (LatexSuite) I had changed the settings in my tex.vim file so the ...
0
votes
2answers
23 views

rounded box around text

\newcommand*\round[2]{% \tikz[baseline=(char.base)] \node[anchor=north west, draw,rectangle ,rounded corners, inner xsep=5.6cm, minimum size=5.5mm, height=3.6mm, fill=#2,#2,text=white,align= left](...
0
votes
0answers
7 views

I want to detect an order placed at the beginning of each theorem

I want to detect an order placed at the beginning of each theorem. \documentclass{article} \usepackage{ifthen,ntheorem} \newtheorem{ex}{Exam} \begin{document} \begin{ex} \LaTeX{} There is the LaTeX ...
0
votes
1answer
19 views

`h!` table palcement with `H` spacing?

So I'm trying to make an entirelty double-spaced document, so I have the following code in a MWE: \documentclass[12pt,a4paper,titlepage]{article} \usepackage{setspace} \setstretch{2} \...
2
votes
1answer
13 views

How to define two expl3 functions with the same base name and different signatures?

I need to define a function that takes no parameters, then define a function with same name but with a single parameter, and call the first function from inside the second. If this is not how it's ...
0
votes
1answer
34 views

How to make a document such as this image?

I am relatively new at LaTeX and I was wondering how to make a document such as this one.
0
votes
0answers
17 views

Is there a way to collect all content in a file with the same label?

So, I'm writing a study guide as a book class document, and at the end of each chapter I'd like to be able to print summaries/highlights. What I have in mind is to tag and then re-print tagged ...
0
votes
0answers
21 views

commands do not appear in blue anymore

I don't know what buttons did I hit that I am not aware of, but all of a sudden, I stopped seeing the LaTeX commands in blue anymore. I am talking about \begin{document}, \end{document}, \section, \...
2
votes
0answers
12 views

LyX justification problem

I am experiencing some problems with LyX justification. I left all parameters as default, but suddenly when I start a new section the subsequent text automatically changes justification. How can I ...
2
votes
2answers
34 views

Using new command for a tikz draw

I created a new command for a drawing I want to use as a subindex: Here's what I did: \newcommand{\test}{\begin{tikzpicture} \draw (0,0)--(1,1); \draw (0,1) -- (0.5-0.05,0.5+0.05); \draw (1,0) -- (0....
-1
votes
0answers
26 views

Can I change the size of a manual break (\\) throughout the document?

I have a long document with a bunch of manual breaks in it, e.g. Hello here is some text \\ \\ Hello here is some text \\ \\ Hello here is some text Is there any way I can adjust the size of "\" ...
0
votes
1answer
22 views

Both belowskip and aboveskip not working

I've tried everything I can, but can't seem to get the belowskip or aboveskip to work: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[textwidth=15cm,...
2
votes
1answer
14 views

Vertical spacing in multicol environment with tabular environment

I want to create three tables (using the tabular environment) side-by-side in a tcolorbox environment, each of which start and end at the same height. Strangely, the third column always shows up a ...
0
votes
0answers
13 views

Header and footer automatically in each page of the document

I would like to have a specific header and footer that are included automatically into my document. I have the following MWE (taken from another thread here): \documentclass{article} \usepackage{...
0
votes
0answers
27 views

Looking for templates

Is there a template for doing this:
0
votes
2answers
26 views

How to remove the line break for a nested enumerate with a marginpar?

The MWE below demonstrates my problem. I suppose that somehow the marginpar is introducing something on the line and Latex is then treating the line as non empty. %%%%%%%%%%%%%%%%%%% \...
0
votes
1answer
15 views

the \ac* command does not produce an abbreviation

So I am finalising the TeX files for submission to IEEE. I have decided to use the acro package to make sure abbreviations appear properly. For some reason the output of \ac*{...} is not abbreviated. ...
3
votes
2answers
26 views

Text not aligning in table

I asked a previous question on making a table with varying cell size. Using one of the answers given I was able to create what is seen below. The problem is the text in the lower cells do not align ...
0
votes
1answer
25 views

Symbol for intersect transversally

I want to use type an intersection symbol with a vertical line to indicate intersect transversally of submanifolds, like this: The symbol I looked up on detexify isn't quite what I want (it gives me \...
2
votes
1answer
31 views

tikz node exceeding axis

I have an axis environment in a tikzpicture with a straight line exceeding the axis. At the end of the line I add a node whose text partially also exceeds the axis and is clipped. Clipping the line is ...
1
vote
1answer
26 views

How to convert to standalone document a matrix table

I would like to generate a .pdf standalone figure of the following tikzpicture. I have tried the common examples of standalone tikzpictures but it does not work. \documentclass{article} %%%%%%%%%%%%...
2
votes
2answers
31 views

Draw a cyclical graph with nicely aligned edges using nodes in tikz

I would like to draw a cyclical graph in tikz using nodes and edges as hassle free and with as little code repetition as possible. However, the resulting edges do not align nicely with respect to the ...
0
votes
1answer
13 views

How do I refer to the glossary section using ref?

I am using the glossaries package. In the document, I would like to say "Please, refer to section \ref{my-glossary}". How can I do that? Here's an example. In the file notes.tex \documentclass[12pt]...
2
votes
2answers
55 views

Superlattice in Tikz

I'm trying to work out how to plot two (hexagonal) lattices stacked on top of each other at a relative twist angle on tikz -- see the attached examples. I know how to plot a lattice using a for loop, ...
0
votes
1answer
6 views

Citation with only the author name [duplicate]

I have the following paragraph; \usepackage[backend=biber,style=nature,natbib=true]{biblatex} \begin{document} Open Multilingual WordNet~\cite{bond_survey_2012} set out to discover the effect of ...
0
votes
1answer
29 views

How to draw a sphere using asymptote from tutorial

I'm just following the tutorial from Charles Staats III In the page of 55, the codes: settings.outformat = "pdf"; settings.prc = false; settings.render = 0; import three; size(5cm,0); path3 myarc = ...
0
votes
0answers
17 views

List of symbols is not showing up when using the glossaries package

I have noticed that this question was asked before on this website, but none of the posts I have read solves my problem. I am using texmaker and I have defined a user command with the commands below. ...
0
votes
0answers
24 views

Changing \section headline

in the report class I structured my document in chapters, sections and subsections. All my sections are called "Task [number]". At the moment all my sections headings are like "Task 2" and I want ...
0
votes
2answers
19 views

Interaction between SASnRdisplay and Tufte book class

SASnRdisplay is a package to display SAS and R code and results. It appears to have some bad interaction with the Tufte book class. The code below produces very odd text (letters with a variety of ...
1
vote
3answers
33 views

Putting text in the middle of a line within a three part table

I am trying to put some text in the middle of a horizontal line that only spans a part of the table. Below is my table so far \documentclass{article} \usepackage{amssymb, amsmath, bm} \usepackage[...
0
votes
0answers
22 views

Why is the caption not being displayed

I using ltabulex for my long table. The table is coming out fine, but the caption is not being displayed above the table. Does anyone know why? \documentclass{article} \usepackage{tabularx} \...
7
votes
1answer
145 views

What's the Difference between Two Single-Quotes and One Double-Quote?

As you would know, LaTeX uses ` for opening quotes and ' for closing quotes. Most fonts also allow the usage of " for closing doublequotes. My question is: what are the differences in typesetting, ...
2
votes
1answer
29 views

Detect empty key in pgfkeys without `.get` code

I am trying to use pgfkeys to define an API for some macros, and I am having trouble detecting when a key is "empty". Based on this answer, I have come up with the following code: \documentclass[12pt]...
3
votes
1answer
31 views

TikZ graph node wobble

Is there a way to align nodes by baseline in TikZ graphs? \documentclass[tikz]{standalone} \usetikzlibrary{graphdrawing} \usegdlibrary{trees} \begin{document} \begin{tikzpicture}[tree layout] \...
2
votes
1answer
36 views

ConTeXt: How to suppress indentation after setup

Let's say I have a setuo foo, and I always want to suppress indentation for the next paragraph? Is there a way to achieve this? \startsetups foo FOO \stopsetups \setupindenting[yes,medium,next] ...
1
vote
1answer
32 views

why roundcorner here dont take effect?

It is still rectangle this is my code(line15) \documentclass[UTF8]{article} \usepackage{ctex} \usepackage[a4paper]{geometry} \usepackage{amsmath} \usepackage{amssymb} \usepackage{mdframed} \...
0
votes
0answers
15 views

Set the max width of the image and does not stretch if smaller

Hi Is there any option in includegraphics in a way that I can specify the maximum width of the figure. If the image is larger than the specified width, it should be resized to its maximum width. ...
3
votes
1answer
35 views

How to make letters size on picture the same as in text

The following two pictures are drawn in TikZ 3D (the first) and in Asymptote (the second). It is visible that the letter sizes for the Asymptote picture are bigger than the ones with TikZ 3D (for ...
2
votes
3answers
104 views

How do I align equations in three columns, justified right, center and left?

\[\begin{array}{crl} &(L-\epsilon)(x-M)\leq f(x)-f(M)&\leq(L+\epsilon)(x-M)\\ \Rightarrow&(L-\epsilon)(x-M)+f(M)&\leq f(x)&\leq(L+\epsilon)(x-M)+f(M)\\ \Rightarrow&(L-\epsilon)...
4
votes
0answers
38 views

About the typographical effectiveness of left aligned equations

It seems to me that in mathematical works, the equations are usually center aligned and in physical works they are usually left aligned. I wonder if there is any typographical reason to do it either ...
0
votes
0answers
12 views

tikzpicture tab inside Forest doesn't work

i would like to know why compliling the tree without the tikzpicture go well, even they are some errors, else i don't get the tree i would like \PassOptionsToPackage{svgnames}{xcolor} \...
0
votes
0answers
29 views

How to draw a half circle for connections in `Tikz` [duplicate]

This is the block diagram I want to draw: This is the block diagram I was able to produce: Here is my MWE: \documentclass[tikz,14pt,border=10pt]{standalone} %%%< \usepackage{verbatim} %%%> \...
0
votes
0answers
14 views

Make label reference contain section number

I have some code that looks like \section*{Problem 1} \begin{enumerate} \item Hello \item \label{problem-2b} Yes \item \cref{problem-2b} Welp \end{enumerate} I want the reference to appear ...
1
vote
1answer
33 views

Unable to add references file in main file

I'm stuck on writing references in my main text. Can anybody please help out with the code? If I go to PDF for the same, I'm unable to get anything out of it. \documentclass{article} \usepackage[...
0
votes
1answer
25 views

Page numbering on chapter pages (fancyhdr) + roman numbering before introduction

I would like to have all of my page numbers on the top right of my pages and for now it does so only for my pages without a ,\part or \chapter. Furthermore, I would like my pages before my in ...
2
votes
2answers
36 views

Aligning table notes to the left in three part table

I have some trouble with the table notes of my table. For some reason, my table notes do not align to the left (probably because my table is quite wide). Is there a way to widen the table notes such ...
0
votes
1answer
23 views

Add number to bibliography

I can't get the numbering to work on my bibliography. Currently it looks like this: I'd like to have the Literatur line as 13 Literatur. These are my document packages: \documentclass[ a4paper, ...
3
votes
3answers
83 views

Full horizontal justification in table

I want the table to output exactly as shown in the picture (the location of words is important). The first three lines should be fully justified (left and right), and the last line should justify to ...
0
votes
0answers
53 views

How to improve this without using “exotic” packages? [on hold]

How could I improve this without using "exotic" packages as I am not allowed to use any other than given in the template the professor gave us: \begin{itemize} \item[] \textbf{Input:} objective ...

15 30 50 per page