Questions tagged [horizontal]
The horizontal tag has no usage guidance.
89
questions
0
votes
1
answer
57
views
Customized list environment with horizontal line after each item
I have this LaTeX code:
\documentclass[12pt, a4paper]{book}
%%% Packages
\usepackage[margin = 20mm]{geometry}
\usepackage{xcolor}
\usepackage[most]{tcolorbox}
%%% Macors
\newenvironment{aims}{
...
0
votes
0
answers
34
views
Chapter header runs off the side of the page on a few random horizontal pages
Edited
I am very new to LaTeX and I have just compiled my thesis using twoside (it had been oneside previously). On a few random horizontal pages the Chapter header (which has been shortened using \...
1
vote
1
answer
56
views
Tikz-feynman [blob] does not appear
I am trying to create a simple fermion that has both a blob and horizontally aligned paths. However, I cannot get my diagram to work with both.
With \feynmandiagram, I can create a blob, but not a ...
-1
votes
1
answer
58
views
Horizontal Line with a down arrow in the center [closed]
To describe transformations from certain programming constructs into e.g. assembler I need a horizontal line with a downward pointing arrow in the center of the line.
Is there also a way to achieve ...
-1
votes
1
answer
92
views
Small horizontal lines
How to draw this type of horizontal lines in Latex?
4
votes
2
answers
962
views
How to draw a horizontal line on a word in LaTeX
I want to draw a horizontal line on a word in LaTeX. I've tried \cancel but it draws a diagonal line. I checked the \cancel documentation and couldn't find anything about drawing a horizontal line.
0
votes
1
answer
73
views
On Scaling Horizontal Spacing Commands
Many horizontal spacing commands are of course, found in What commands are there for horizontal spacing?.
I would like to inquire if, say, invoking the \enspace command, which produces a space of .5em,...
1
vote
1
answer
95
views
Horizontal lines (top and bottom of text) [closed]
I am a beginner and trying to re-create something that looks like the below. Please can someone help?
Thanks
If I use the following code
\begin{centering}
\hrule
\title{$title$}
\hrule
\end{...
1
vote
2
answers
65
views
Items of an Enumerate Environment in Paragraph with Adjustable Gaps
Consider the code
\documentclass{book}
\begin{document}
\parindent 0pt
\begin{enumerate}
\item[I.] The first item. \item[II.] The second item. \item[III.] The third item.
\end{enumerate}
\vspace{15pt}
...
0
votes
1
answer
40
views
Personalized TOC in Book: add a line before and after the part
I am struggling and I cannot find my way around this problem.
I am using the book structure and I would like to have a nice TOC with the following elements:
a "Part" that is included ...
0
votes
1
answer
91
views
How do you write text at the end of an equation? [duplicate]
Like how do they get the bit where it says (By linearity of expectation) whilst still aligning the equations
0
votes
1
answer
33
views
Center alignment of images but with captions aligned at bottom
I have two different figures that I want to center align in a figure environment and I want the captions aligned at the bottom. Both figures have different sizes (see attached).
Thanks!
0
votes
1
answer
75
views
Horizontal Multicols
Since the answer for my last question Tasks not accepting environments was pretty much: doesn't work, is there any alternative to tasks where the items are horizontally aligned?
Normal behavior of ...
1
vote
0
answers
75
views
Good names for \, and \! with nonempty glues
Let's assume that you often wish to insert a stretchable thin space instead of a fixed-size\,. Your document is full of \mskip3mu plus1.5mu minus1.5mu in math mode or \hskip.16667em plus.08333333em ...
2
votes
0
answers
107
views
Can I retrieve the position of some specified text on the pdf page for subsequent use?
I'm working on a text in LaTeX (I have TeXLive 2017 installed on my system), and it would really be of great help if there was any way to "save" the horizontal position of a word (either the ...
4
votes
2
answers
126
views
What's the best way to avoid ignoring leading space tokens with arguments of LaTeX commands where command before argument does space-hacking?
In LaTeX there are commands that process arguments but do not produce visible output.
For example, the command \label, or, if you use the package color or xcolor, the command \color.
When the closing ...
1
vote
1
answer
46
views
I want a code to rep a big matrix in row wise
\begin{align}
\begin{bmatrix}
\big| & \big| & \cdots & \big| \\
x_1 & x_2 & \cdots & x_{m-1} \\
\big| & \big| & \cdots & \big| \\
...
0
votes
3
answers
54
views
Is it possible to use Tab space to create a horizontal space and then align the texts ? I used \quad and \qquad but it doesn't work
\begin{itemize}
\item Structure porteuse (y. c. infrastructure) \qquad \qquad \qquad \qquad 75 ans
\item Parapets / bordure de pont \qquad \qquad \qquad \qquad \qquad \...
6
votes
1
answer
496
views
Why are there two commands \> and \: that do the same thing?
The file latex.ltx says:
\DeclareRobustCommand\:{\tmspace+\medmuskip{.2222em}}
\let\>=\:
Why are there two equally long commands \> and \: doing exactly the same thing? To me, they look ...
0
votes
1
answer
182
views
Why does align character & remove horizontal space?
This is something I've been wondering and annoyed about for a long time but cannot find an answer to.
Assume that I have a chain of equations:
\begin{align*}
a &= b \\
&= c
\end{...
1
vote
1
answer
328
views
nudge caption left or right along with figure or table?
I periodically need/want to slightly 'nudge' the placement of a figure, or table, to slightly off-centre (xx em to the left, or xx em to the right). This is easy enough with \hspace{xxem} as shown in ...
1
vote
1
answer
94
views
How to Redefine the fbox Command to Increase the Default Space Between It and the Beginning of the Subsequent Sentence
Here is a MWE that displays the use of the \fbox command in multiple paragraphs:
\documentclass{book}
\usepackage{lipsum}
\usepackage{xcolor}
\begin{document}
\parskip 10pt
\Large
{\color{red}{\...
3
votes
2
answers
223
views
width of a control space in relation to a quad, thin, medium, and thick spaces
In the majority of fonts such as Computer Modern, NewTX Math, or TeX Gyre Termes Math, how wide is the control space \ (visibly: \␣) in relation to the other math-mode space commands
\quad,
\;,
\&...
0
votes
1
answer
46
views
How to insert references in horizontal mode?
I am defining an exercise environment as follows:
\newtheorem{aufg}{Exercise}
\newenvironment{aufgabe}[2] % #1: Anzahl der Punkte, #2: Anzahl der Karozeilen unter der Aufgabenstellung
{\setcounter{...
0
votes
1
answer
22
views
How do you make the caption in a Figure fill horizontally?
I have a tex for rendering a figure below, in which the figure caption has text which is not filling the page horizontally.
\begin{figure}
\centering
\includegraphics[scale=0.30]{image} \\
\flushleft \...
2
votes
1
answer
362
views
Automatic split rows in a table of data
So I was trying to contain some data I collected during an experiment in a table. There are 25 entries in total, but each row can only contain around 13 entries, which means I have to split them into ...
3
votes
3
answers
308
views
Wide landscape tabular doesn't fit
So I'm making this table for a assignment at school but it didn't fit. After making it use landscape it still cuts off at the sides. Is there some way I can let it continue on another page or make ...
2
votes
2
answers
250
views
Horizontal and vertical lines in a table
I'm having a problem with horizontal lines, \multicolumn and \cdashline.
As you can see in my MWE, I use \multicolumn to put section headings which I close by \cdashline but the vertical lines don't ...
0
votes
0
answers
163
views
Multiple horizontally stacked side-by-side listings
I am using acmart. They define a full-text (two-column) listing environment listing*. If I put multiple minteds inside it, they are stacked vertically. I would like to have them side-by-side. Is that ...
3
votes
2
answers
145
views
Are the Packages etoolbox and scrextend Incompatible? (Trying to Increase Horizontal Space Between Bold Footnotemarks and Their Text)
This question is an extension of How to Make Bold the Footnotemarks Appearing After the Footnote Line
Starting with the code from Werner's excellent answer which makes bold the footnotemarks after ...
1
vote
0
answers
61
views
I'm looking for general code to get labels the same orthogonal distance from their lines in a forest probability tree
I've got this:
\documentclass{article}
\usepackage{forest,tikz}
\forestset{
ptree/.style={
for tree={
grow'=east, %grow' reverses direction of reading...for horizontal to the ...
1
vote
1
answer
448
views
how to reduce horizontal space between figures in tabular
I'm using this code
\begin{figure}[ht]
\begin{tabular}{ll}
% after \\: \hline or \cline{col1-col2} \cline{col3-col4} ...
\includegraphics[trim = {3.32cm 10.61cm 3.32cm 10.61cm},clip,width=...
1
vote
1
answer
390
views
long table problems with horizontal line
Hi all I want to produce long table so I wrote this code:
\documentclass[a4paper,11pt,english]{report}
\usepackage{longtable}
\usepackage{multirow}
\usepackage{graphicx}
\usepackage[table,xcdraw]{...
2
votes
1
answer
68
views
How to Realign a Horizontal Stack with the Above Item
Consider the MWE
\documentclass{article}
\textheight 8.25in \textwidth 4.75in
\usepackage{scalefnt}
\usepackage{amsmath,amssymb}
%\blacksquare\hspace*{.7em}
\usepackage{stackengine,xcolor,lipsum}
\...
1
vote
1
answer
56
views
Horizontal spacing in document class book
Here is my document from the beginning:
\documentclass[11pt, openany]{book}
\usepackage[utf8]{inputenc}
\usepackage[a4paper, margin=1in]{geometry}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\...
1
vote
0
answers
41
views
Are Lettrines Incompatible with the Adjustwidth Environment? [duplicate]
Consider the following code.
\documentclass{book}
\usepackage{lipsum}
\usepackage{changepage} % for adjustwidth environment
\usepackage{lettrine}
\usepackage{xcolor}
\begin{document}
\noindent \...
3
votes
2
answers
297
views
Why \hskip and \hspace* Produce Shifts of Different Measures
I have noticed, for example, that \hskip 20pt and hspace*{20pt} produce horizontal shifts not of the same length.
Consider, for instance,
\documentclass{book}
\usepackage{lipsum}
\usepackage{graphicx}
...
0
votes
1
answer
125
views
Table of contents in a tabular environment - how to align horizontal lines between entries?
Problem: I am trying to put a table of contents into a table so that an agenda tick list can be automatically generated from sections/subsections titles that have been defined in another file. ...
2
votes
1
answer
253
views
Double Align in Side to Side equations
I want to align two equations side to side. In alignment, I can use $a=b && c=d$ to do that. However, I can only align with one equal sign with that method. That is,
\begin{align*}
189410 &...
1
vote
0
answers
35
views
Horizontal bar charts with min and max data in pgfplots [duplicate]
I am trying to create a horizontal bar chart like the one in the picture below. For that I want to use data stored in a table like this:
\pgfplotstableread[col sep=comma]{
system, Tmin, Tmax, ...
0
votes
2
answers
204
views
Need more dots after section title in ToC
I would like to fix a little dots glitch in my ToC. Here's a MWE showing the issue:
\documentclass[11pt,letterpaper,twoside]{book}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[total={6in,...
0
votes
2
answers
146
views
Horizontal alignment of columns
How can I leave the final 2 columns, evenly spaced horizontally?
Here is the code:
\documentclass{article}
\usepackage{array,multirow,amsmath}
\providecommand\legend[1]{#1} % ??
\begin{document}
\...
2
votes
2
answers
353
views
How do I add a Picture (png) in its full size as an entire horizontal page in my otherwise A4 document?
I am currently working with Texmaker trying to add a png that is 2000x1800 px in size as an entire page into my document, which has an A4 format set. I do not want to have a margin on any pageside for ...
3
votes
1
answer
650
views
Latex: How to add dashed lines for matrix?
In a $4\times5$ matrix,
\documentclass{article}
\usepackage{amsmath,amsfonts,bm,mathdots}
\begin{document}
$$\left(\begin{matrix}
1 &2 &-1 &3 &4\\
0 &1 &3 &-2 &...
2
votes
0
answers
120
views
Adjusting horizontal spacings around product signs, in math mode
This issue may be inexistent to the eyes of most people, but it currently scroches my aesthetical eyes!
I would like to adjust the spacings around the usual product signs (scalar product, vectorial ...
11
votes
2
answers
2k
views
Horizontal Line in Array
Good evening,
I'm trying to achieve following picture in latex, but i can't do it. Can someone help me?
This is what I have so far:
\documentclass[a4paper,12pt]{scrartcl}
\usepackage{booktabs}
\...
1
vote
2
answers
664
views
Hline too long or midrule too short
Probably due to the specifications I made in tabular, I can't put a line that covers all my columns. If I out hline it's too wide and when I put midrule is too short. Can someone help me to put a line ...
1
vote
1
answer
90
views
Table with horizontal cells
Does anyone know how to make this table? I tried this code.
\begin{table}[h]
\centering
\begin{tabular}{clrr}
\multicolumn{1}{c}{Order} & \multicolumn{1}{c}{Family} & \multicolumn{1}{c}{...
0
votes
2
answers
70
views
Table with predefined dimensions and horizontally and vertically centered cells
I have a hard time making a table that would have predefined dimensions (the whole page) and cells centered horizontally and vertically. I have found solutions for each of those problems individually,...
0
votes
0
answers
36
views
Positioning minipages vertically and horizontally
I am trying to put different minipages (boxes) of different length and height to fit the empty spaces best, however I have no idea how to solve the problem:
Here's my code and here's what I want to do:...