Skip to main content

Questions tagged [line]

The tag has no usage guidance.

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

How to make end of line draw match the node at the end of another line

I would like to represent a camera placed on the ceiling with a rectangular node and lines representing the focus of the camera. The code is as follows: \documentclass[border=2mm]{standalone} \...
pablo's user avatar
  • 551
1 vote
1 answer
66 views

I want this type of layout design for my document

Can someone help me latex code for this type of layout for A4 Paper? I want to get black margin left on odd page and right on even page. Longing for expert's help. Thanks.
Thurein Minn's user avatar
0 votes
2 answers
56 views

How can I write $\begin{pmatrix}1 // 2\end{pmatrix}$ in the main text? [duplicate]

It occured to me that writing a 2x1 vector i.e (a "over" b) in Latex is not as easy as I thought. I use normally the form $s=\begin{pmatrix} a\\ b \end{pmatrix}$ but this creates a ...
Superunknown's user avatar
0 votes
1 answer
72 views

The Theatre Ticket [closed]

\begin{tikzpicture}[scale=0.8] \draw[->] (0,0) -- (10,0) node[right] {Quantity}; \draw[->] (0,0) -- (0,10) node[above] {Price}; \draw (2,8) -- (8,2) node[midway,below] {Demand Curve}; \draw (1,9)...
October's user avatar
0 votes
1 answer
41 views

Getting longest line from a list of lines

I have the following problem: In a list of lines (separated by \\), how to get the longest line; or at the very least, the width of the longest line. I see that there is a Plain TeX solution --- which ...
ltcomdata's user avatar
  • 935
6 votes
4 answers
143 views

TikZ how to temporarily discontinue line at intersection of two lines

I am working in TikZ and I am trying to make one line stop, then start again before and after the intersection with another line. I have attempted to put a node at the intersection point and filled it ...
vali.b's user avatar
  • 63
0 votes
1 answer
51 views

How to remove the line between multiple cells in the same column?

I have a table where I want to remove the yellow lines. This is because those cells (in the same column) have the same value. As such, I also would like to keep one unique value in the merged cell. ...
Akira's user avatar
  • 1,441
4 votes
1 answer
169 views

dashed line in tikz

I have written the code for this figure, how can I add these two dashes to it \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,positioning,fit} \usetikzlibrary{arrows,calc,positioning}...
mzn's user avatar
  • 333
3 votes
2 answers
197 views

Connecting nodes by lines which represent density of connections

How could the lines be connected to signify density(heat) by the number of lines connecting to parenting nodes. I.e the more lines connect to same parent node, the brighter the heat of the converging ...
Joosep Parts's user avatar
0 votes
0 answers
55 views

Vertical lines in nested itemize environment

Looking to add vertical lines that separates the head levels in nested itemize environment as shown in the image. There is a similar question here. But I want to keep the bullets as shown in the image....
Tarek Acila's user avatar
1 vote
1 answer
31 views

Strange line width in memoir

Here is the MWE: \documentclass[a4paper, 12pt, oneside, openany]{memoir} \AtBeginDocument{ \settrims{0pt}{0pt} \settypeblocksize{257mm}{165mm}{*} \setlrmargins{30mm}{*}{*} \setulmargins{20mm}{*}{*} \...
Namalsk Corporation's user avatar
0 votes
0 answers
26 views

How to change vertical spacing between lines in text environment, but NOT between lines in an equation type environment

I know there is the setspace package with onehalfspacing etc, but when I use that command (even worse for doublespacing), it changes the space between EVERYTHING, equations included, and I end up with ...
bananaspace's user avatar
0 votes
1 answer
66 views

Brackets on a line

I am trying to replicate a figure like the following. But I haven't found the way to draw a line between the brackets or to align the arrow with that line. Any help would be most welcome :) Thanks in ...
Yann's user avatar
  • 13
0 votes
1 answer
43 views

how to specify table line width and color of a merged cell

how can i use \multicolumn after \noalign{\color{greenTable}\hrule height 1.5pt} ? i keep getting an error here is my full code: \begin{tabular}{ l | c | c ...
ssyakajam's user avatar
2 votes
2 answers
126 views

Line below a wrapped image

I'm trying to do the following but for some reason, the line below the image is going to the right. here's the code I'm using \begin{document} \noindent\rule{\textwidth}{0.1mm} \begin{wrapfigure}{l}...
Ivan Leon Parada Marin's user avatar
0 votes
0 answers
99 views

Strange artifacts with \hhline

I'm trying to use \hhline to draw partial lines in my tables (for which I can't use \cline since my tables contain coloured cells and it is a well-known problem that this combination doesn't work). I'...
Mew's user avatar
  • 843
2 votes
2 answers
103 views

Variable line thickness for parts of the table

I am using this code: \documentclass{article} \usepackage{array} \begin{document} \newcolumntype{?}{!{\vrule width 1.5pt}} \scalebox{1.1}{ \begin{tabular}{|c?c|c|c?c|} \hline & & & &...
Aritro Pathak's user avatar
1 vote
2 answers
184 views

Underfull \hbox

The following code gives me the following error "Underfull \hbox (badness 10000)" \documentclass{article} \begin{document} text \\ \\ text \end{document} I found some alternatives,...
Alessandro Lin's user avatar
0 votes
1 answer
311 views

Tikz renders filled lines as dashed with `Lines`

I am attempting to reproduce a pattern fill from the tikz documentation. Specifically, I run \usetikzlibrary {patterns,patterns.meta} \begin{tikzpicture} \draw[pattern={Lines[angle=45,distance={3pt/...
Seraf Fej's user avatar
  • 143
2 votes
1 answer
266 views

Changing line height and line thickness with TikZ

I would like to change the distance between successive lines (height distance here 1cm) and also the thickness of lines using the code below if that's possible. I need the reference number and page to ...
Jon's user avatar
  • 559
2 votes
2 answers
164 views

Tabularray. Need a partial vertical line at the beginning of the table

I'm trying to format a table to have an empty space in the first two rows and first column. That means no vertical line at row{1}, but the other must have. Haven't figured out how to do that. Here is ...
JJP's user avatar
  • 81
0 votes
0 answers
24 views

Table position text

I want to insert several tables into my text, so that they are in the middle of the page, centrally under the text. this works for the smaller tables, but for example with this one, the table starts ...
Sabrina's user avatar
2 votes
1 answer
187 views

Making a ruled dinkus

How can I make a ruled dinkus in LaTeX? Meaning three asterisks *** with a short line (or extending to the paragraph width) on either side of ***.
Bhanat's user avatar
  • 1
2 votes
1 answer
70 views

Making new commands

I want to write my own library. How could one define a new command equivalent to the following ? \par\noindent\rule[5pt]{\textwidth}{1pt}
Bhanat's user avatar
  • 1
2 votes
2 answers
64 views

Remove a line selectively between 2 particular cells (horizontally and vertically)

Is there a simple way to remove a line selectively between 2 particular cells. Let's say for example the vertical line between cell4 and cell5 and the horizontal line between cell6 and cell9? \...
ecjb's user avatar
  • 935
0 votes
0 answers
43 views

Reducing whitespace inside a tcb box?

How could I reduce the white space before the proof and the itemize in the tcb environments I have below? Any help would be greatly appreciated. \documentclass{book} \RequirePackage[dvipsnames]{...
xyz04's user avatar
  • 137
-1 votes
1 answer
68 views

discrete line spectrum

I want to produce this image. I have no data. This is a periodic trig function with different amplitudes. specifically I want to have sticks with "no" volume. Thank you for helping.
Sophia N.'s user avatar
0 votes
2 answers
183 views

discrete line spectrum in latex [closed]

I am trying to make this line spectrum. I found a code of this type but the tilde sign does not recognized in my latex environment. I have most updated version of latex \tikzset{ % define the bar ...
Sophia N.'s user avatar
-1 votes
1 answer
77 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 ...
Marcel Schaible's user avatar
4 votes
1 answer
73 views

Aligning at differents levels

I would like to know which could be the simplest way to obtain something like Where each sequence of letters represent a long expression. To be more precise I want that the sequence of b's to start ...
prosep's user avatar
  • 141
1 vote
1 answer
89 views

Extend vline slightly beyond surrounding box?

Is there a way to extend a \vline slightly beyond the boundary of the surrounding box? In the case I have in mind, I'm attempting to have a continuous vertical line between several items in an ...
joshisanonymous's user avatar
1 vote
0 answers
159 views

Arrowed lines for tablature bends in MusiXTeX

How can I insert arrowed curved lines to indicate bends in tablatures like these ones in MusiXTeX? The documentation says nothing about that.
Alberto López's user avatar
4 votes
2 answers
107 views

Continuing a line with a new line in tikz using the slope equation isn't working as expected

I have the following minimal working example: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \coordinate (A) at (-1, 1); \coordinate (B) at (...
Fabitastic's user avatar
2 votes
0 answers
54 views

Linenumber doesn't work? [closed]

I am using these packages to write a scientific paper. MWE \documentclass[aps,prl,twocolumn,showpacs,floatfix,superscriptaddress]{revtex4} \usepackage[]{graphicx} \usepackage{epstopdf} \usepackage{...
MementoMori's user avatar
0 votes
1 answer
155 views

Break line in bibliography for doi [closed]

I generated a bibliography with biblatex. In one reference there seems to be a problem in splitting the Doi, so now the doi goes over the line on the right side. I tried solving this problem with ...
mar123's user avatar
  • 1
0 votes
0 answers
62 views

How do I start a text from a certain distance from the right margin in the same line?

I'm trying to put together the title page for my thesis and the university has the instruction to have basically two columns of text at the bottom of the title page. Left column has to have a 4cm ...
GRacz's user avatar
  • 1
4 votes
5 answers
231 views

Adding a number in front of a vertical line in bracket equations

I want to add a number in front of this vertical line in this equation here but without it aligning to the middle of the equation, instead aligining to one of the equations. \begin{equation*} \left. ...
Cal's user avatar
  • 41
2 votes
2 answers
66 views

How to annotate some text with stacked line segments

How would I go about achieving this type of type setting?
Dave Fol's user avatar
  • 123
0 votes
1 answer
211 views

Why doesn't \textit work over multiple lines in tabbing?

If I have text in italics over two lines in the environment tabbing, only the first line is italic and the second line is upright. Also, the compilation has errors. Why is that? How can I make \textit ...
matj1's user avatar
  • 119
1 vote
1 answer
150 views

How to change the width of lines generated with `\varline` in MusiXTeX?

Does anybody know how to change the width of the line generated with the \varline command? The default width appears very thin in my document. \begin{music} \startextract% \NOTEs% \cu h\varline{3}{5\...
Alberto López's user avatar
1 vote
2 answers
207 views

Having problems wrapping text in table using NiceTabular

Edit: I have managed to resize the table to fit into one page, but for the life of me, I can't figure out why the first line is way off and gets printed into line two. I also don't understand why the ...
Ólafur Víðir Guðbjargarson's user avatar
1 vote
1 answer
45 views

Strikethrough with Color lines along rows and columns in matrices

It works like to get Can someone see how to fix this to work for both rows and columns? Here I have tried : \documentclass{article} \usepackage{amsmath} \begin{document} \[\begin{bmatrix} d_{11}\...
MKS's user avatar
  • 412
3 votes
1 answer
88 views

How to make a checklist with horizontal line connecting text to checkboxes?

With checklists, it can be hard to see what text corresponds to what checkbox. I'd like to have a horizontal line "connecting" the text to the boxes so that I can follow the text with my ...
AlphaCentauri's user avatar
2 votes
1 answer
62 views

Break a horizontal line in tikz

can someone help me to break this solid to look like the figure attached? \begin{tikzpicture} \matrix[matrix of math nodes, nodes={text depth=.25em, text height=1em}, font=\small, column 1/....
Ijuptilk's user avatar
1 vote
2 answers
176 views

Latex Exam Class: custom Line width for exam class "solutionorlines" environment

I am using "solutionorlines" environment of latex exam class for short questions (with solution) which provide lines for answers. The following code codes gives me lines for answers which ...
Tash's user avatar
  • 443
2 votes
2 answers
964 views

Change thickness of cmidrule

How can I change thickness of \cmidrule because I need it in my report.
Kaniky's user avatar
  • 69
1 vote
3 answers
57 views

How to determine the position of the third node from the position of the two nodes?

Here is the image my existing code produces: I hope that the FFFFF of the rhombus can be directly above C and directly to the right of E. How should I do it? Below is my minimal working case: \...
Zhao Dazhuang's user avatar
1 vote
1 answer
74 views

Command \fillwithdottedlines (taken from exam documentclass) does not work in a table (Tabularray). Why? Can be fixed?

I have the following document which is a table (tabularray) which I want to full with empty dotted lines. I have defined the command \fillwithdottedlines as you can see in MWE. Although the command ...
miltos's user avatar
  • 2,647
1 vote
1 answer
91 views

Chronosys box outline shows unwanted line

I'm making a timeline using chronosys package. It worked well but when I choose the box=true option in the \startchronology, a line popped just before the arrow and I can't make it disappear. Here is ...
BlueMarker's user avatar
0 votes
0 answers
186 views

How do you draw a basic line with ConTeXt and METAFUN?

I was able to draw a basic line, however I am still have this feeling of having hit another pebcak… 🤔 This is my line: \startMPcode path line ; line := (0mm,0cm)--(5cm,0cm) ; draw line ...
freezr's user avatar
  • 103

1
2 3 4 5
9