Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [line]

The tag has no usage guidance.

0
votes
0answers
10 views

How to get line number within minted using Verbatim figure environment? [duplicate]

I noticed that using Verbatim to use minted within a figure environment removes the line number, compare the following: 1) the figure environment: \begin{figure}[htp] \centering \...
3
votes
1answer
44 views

Is it possible to draw vertical lines in algorithm (not algorithm2e) package?

My question is if it is possible to draw vertical lines in the algorithm package. I have seen the following question: Vertical line for pseudo code But I don't want to use algorithm2e because it ...
1
vote
2answers
47 views

How to make a single line in latex to have more line space?

In the following code, due to the shape of Q in "Qualification", the upper side of "L" in "Language" stick with the underline of "Further Qualification". Would it be possible to make the line space of ...
5
votes
1answer
110 views

context: line between margin and text

I work with ConteXt. Here at StackExchange I found a code for LateX to put a line between the text and the margin/marginparagraph. This line is visible in the image below. After that, I switched to ...
0
votes
0answers
12 views

Get rid of line above manuscript using [journal]{vgtc} class option

I would like to get rid of this line, that is on the bottom left of the first page of a document of this class: \documentclass[journal]{vgtc}: I already managed to get rid of the text under it, by ...
2
votes
4answers
49 views

Draw vertical line down aligned equation

How do I go about drawing a line vertically down aligned equations like this: I attempted using a tabular environment but some of the spacing is too much. This is what I have so far: CODE \...
0
votes
0answers
25 views

Vertical line in chapter name

I added the vertical line after chapter number with following comma nds: \usepackage{titlesec, blindtext, color} \newsavebox\theCT \definecolor{gray75}{gray}{0.75} \newcommand{\hsp}{\hspace{20pt}} \...
2
votes
1answer
37 views

Diagonal line through whole table

I am trying to set up an intercorrelation table showing results of two samples. However, for better visuals, I want to split this table into two parts by adding a diagonal line through whole table (...
1
vote
1answer
48 views

How do I remove this line from the bottom of the page? [duplicate]

% $Id: template.tex 11 2007-04-03 22:25:53Z jpeltier $ \documentclass{vgtc} % final (conference style) %\documentclass[review]{vgtc} % review %\documentclass[...
0
votes
0answers
31 views

How to remove line at the bottom of my page?

I'm using IEEE TVCG Conference template .. any idea how to remove this line? :
0
votes
2answers
64 views

Coordinate/node command doesn't work with \draw to?

I want to draw a curved line between two points but I can't define coordinates if I'm not using --. Is that deliberate or am I doing something wrong? So, to explain better. If I use the following ...
5
votes
1answer
116 views

What is the cleanest way to ensure that a string all appears on the same line, unless it is too long?

In the following text we want all instances of "BACON" to appear on the same line. Lorem ipsum dolor sit amet, BACON BACON BACON BACON. Mauris sit amet laoreet ante. That is, we want to ...
2
votes
1answer
59 views

my toprule and bottomrule width are different?

I may have change something before at the macro level by accident with some code I got online. How could I set it back? Now I am facing this problem where when I put: \setlength\heavyrulewidth{0.14em}...
1
vote
1answer
36 views

avoid line overflow in algorithm

How can I stop lines of my algorithm to be overflowing as shown in the picture below, I would like to break the lines that are too long into 2 lines and just go down to the next line if one line ...
6
votes
3answers
261 views

Two equations on the same line

I have seen some posts close to what I need, but not quite what I need. I would like to produce two equations on the same line with one equation number adjusted to left and one to the right. Both ...
8
votes
3answers
431 views

Commenting an equation with a vertical bar

I want to use a vertical bar to comment on solving a simple equation. Do you know a way to do that with LaTeX ?
1
vote
1answer
40 views

pgfplots line doesn't reach axis

Here is the code: \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ width=500, height=500, axis lines = center, ...
3
votes
1answer
92 views

\pdfminorversion on the command line?

Is it possible to set the pdfminorversion on the commandline when calling pdflatex, instead of using \pdfminorversion=... in the tex file ?
5
votes
2answers
252 views

Generic Symmetric Drawing

I'm trying to prove something and I need a clear drawing to be able to derive the angles and so on. So I thought why not draw it LaTeX ! Okay so my drawing is as such Those are the cases of 8/6 and ...
2
votes
1answer
29 views

Fill left and right of table cell with horizontal line aligned at vertical middle of cell

Right now the following code achieves the desired result: \begin{tabular}{ccc} 1. & Lorem ipsum dolor sit amet & 10\tabularnewline 2. & \textemdash \textemdash \textemdash \textemdash \...
1
vote
1answer
20 views

How to generate a matrix in a box with lines separating the lines and columns?

This is what I'm trying to do, can anyone help?
1
vote
1answer
47 views

second title in table and vertical line

I would like to add two things in my table: First, in the left side of the table, the results are posted for Risk aversion c = 0.5. The right side of the table shows results for c = 2. I want to ...
2
votes
1answer
129 views

Drawing lines on top and bottom on figures

I would like to create a figure with one line on top of it, and another one at the bottom, that separate the figure form the text. I have tried using the following code: \begin{figure}[h] \par\...
0
votes
1answer
81 views

Drawing two straight lines with different slopes

I wanna to draw a simple figure (attached figure) of two lines with different slopes on which two simple equation is written. any suggestion? thanks
3
votes
4answers
130 views

Horizontal line without indenting

This is the result I want to have (I want to obtain the result that most resembles this mathematical expression): What I have tried is this: \[ \begin{aligned} 01\: 1011 \: 0110\\ 11\: 0001 \...
1
vote
1answer
34 views

Custom Footer Line for fancyhdr (2)

So I need a different line above the footer for every page in the fancyhdr package. It has to look something like This is what I did to create the line \rule{\linewidth}{3pt} \vspace{-0.85\...
1
vote
2answers
248 views

How to draw vertical line in precise position

Please help: I want to draw 2 vertical lines: one line at 148 cm & one line at 160 cm \usepackage[a4paper,landscape,left=0.5cm,right=1cm,top=1cm,bottom=1cm]{geometry} Thanks
1
vote
1answer
41 views

Custom Footer Line for fancyhdr

I'm looking to change the way the footer line looks for fancyhdr to something like this : \usepackage{xcolor} \newcommand\shadowfill{% \leavevmode\leaders\hbox{\ooalign{% \vrule height ...
4
votes
2answers
293 views

Shadowed Horizontal Line

I'm looking to insert a \hrulefill line with a shadow. Something that looks like this: Help would be much appreciated.
3
votes
1answer
48 views

Marks in a line interval

I'm trying to create a line interval with some annotations, but found myself tinkering too much with nodes and positions. Is there any smarter way to do this kind of work? Also I'm very annoyed by the ...
1
vote
1answer
27 views

Line numbering doesn't work as expected

I'm currently working on a large document and want to add line numbers for proofreading purposes. I'd like to reset the current number after every new chapter/section/subsection. To achieve this I ...
2
votes
2answers
195 views

How to quote what's left of the remaining horizontal space?

I'm trying to come up with my own command to fill what's left of the horizontal space with dots but I want the dots slightly lowered relative to the text. Here's my code : \newcommand\ansfill{\...
1
vote
1answer
55 views

Put horizontal lines above and below tabbing and prohibit page breaks between the lines and the tabbing contents

I wish to put a horizontal line above tabbing and another one below it in such a way that there are no page breaks between the tabbing contents and the two lines. Here is what I tried so far: \...
9
votes
2answers
310 views

What's the dotted line equivalent of \rule?

I'm looking for the dotted line equivalent of : \rule[<height>]{<width>}{<thickness>} Something that looks like : .........................
1
vote
2answers
30 views

Lowering horizontal line relative to some text

Here's what I currently have : Code is : \begin{center} \makebox[0.7\linewidth]{\Large{Name :} \hrulefill \ }\makebox[0.25\linewidth]{\Large{Class :} \hrulefill} \end{center} What I'm trying to get ...
2
votes
1answer
115 views

sketching a polar curve using tikz and orientation counterclockwise

I would like to modify the code below so that Can I indicate the counterclockwise directions with arrow -- from O to B -- from B to A -- from A to O Also, 2. Can we indicate theta_1 and theta_2 ...
1
vote
1answer
20 views

How to position a line the whole width of a page on a line of text, but not over text?

I am in the midst of creating my own custom latex class for a CV layout and am wondering how to do so. Here is a picture of what I'm talking about that I created in a word document: Specifically, how ...
3
votes
1answer
64 views

How to produce a thinning-out line?

I'm trying to reproduce the horizontal lines that slightly thin out on both ends that are sometimes used, for example, to separate paragraphs or sections of text. Beside the usual hline, rule and ...
2
votes
2answers
78 views

How to draw a line into the center of a node?

As written in the title I need to let the lines go into the center of the circle. [Code Part at: %Pfeile von den Dots zu den K-Kreisen ] I don't want to use coordinates, only the nodes in reference to ...
1
vote
1answer
64 views

Can't locate input line for an error

I'm trying to debug my thesis and found this warning in the error log: Package hyperref Warning: Difference (2) between bookmark levels is greater (hyperref) than one, level fixed on input line 161....
9
votes
1answer
547 views

Wavy line, but “randomised“

I want to redraw this picture with TikZ: But I have problems with the line which is circled. I know how to draw “normal“ wavy lines, but that's not that what I want to achieve. Here is my MWE: \...
3
votes
4answers
375 views

Centred and flushed right on the same line [duplicate]

I'm trying to get both elements, one centered, one flushed right on the same horizontal line. I've tried \begin{center} stuff \end{center} \hfill more stuff But "more stuff" would appear on another ...
2
votes
2answers
316 views

Draw a line over a node Tikz

Can someone help me to draw a red line --- like in the photo? Thank you so much in advanced. \begin{tikzpicture} \node[draw,fill=white,ellipse,minimum height=4cm,minimum width=7cm,text width = 5cm,...
0
votes
1answer
64 views

LaTeX/plain TeX macro: style a box with custom borders and padding

I'd like to make a LaTeX environment for a styled box without using any additional packages, just defining some lines and spaces. I have already come far, but failing with the last line I imagined in ...
4
votes
1answer
253 views

How to draw line with different markers by pgfplots or tikz?

I would like to draw a line that is similar to the one shown. Now I do something like this. Can someone help me ? Thank you! \documentclass[border=3pt]{standalone} \usepackage{tikz} \usepackage{...
0
votes
1answer
73 views

\hrule length inconsistent

I'm using the tufte-book document class. When I use \hrule, sometimes it extends the text width (which I want), and other times it extends the full page width, apparently randomly. How can I get it ...
1
vote
1answer
57 views

Help with tikz package

Hello I need to write a multiple state model in latex, my code is as follows \begin{tikzpicture} % Draw the states \node[state] (aa) {Husband Alive- Wife Alive (0)}; ...
2
votes
1answer
36 views

How to arbitrarily manipulate line paths in circuitikz diagrams?

I'd like to draw this with LaTeX: This is what I have so far: %%%%%PREAMBLE%%%%% \documentclass[border=0.25cm]{standalone} \usepackage{circuitikz} %%%%%HEAD%%%%% \begin{document} \begin{...
3
votes
1answer
86 views

how to add vertical lines between bars in bar graph

I have a code adapted from this link. My problem is the adding lines and empty spaces between grouped bar graphs. This code generated bar graphs but in this bar graphs grouped bars are very close to ...
1
vote
2answers
362 views

Problem with \vline in tabular

is there a way to have the solution in the figure? without \multicolumn{}{} in every number? Thanks \documentclass[12pt,a4paper,oneside,openright]{book} \usepackage{makeidx} \usepackage{lipsum} \...