Linked Questions

4
votes
1answer
1k views

Get the Length of the Rest of a Line [duplicate]

Possible Duplicate: Is there a way to measure the remaining space of a line of text? I have some text and want to put a \hrulefill at the end following by a period. However, if the text of the ...
67
votes
7answers
45k views

Adding a large brace next to a body of text

I'm writing a short document listing some chronological events. I want to pick out a period with a big brace. Here's a quick mockup: What's the best way to do this? Can I set the size declaratively - ...
51
votes
3answers
10k views

How to define a figure size so that it consumes the rest of a page?

Sometimes I don't need to have a specific picture size, but for layout reasons I would like to scale the image so that the rest of the page is filled. How can I achieve that?
21
votes
1answer
7k views

pdftooltip from pdfcomment package: Using LaTeX code in tooltip

I work as a Physics teacher and I am writing a "Problem-Solution-Book" with hyperlinks from problems to solutions and backreferencing -- all of it works pretty good. Now I wanted to introduce ...
9
votes
3answers
4k views

Defining rules for line breaks in \newcommand

Thanks to the help of this answer, I've defined a command for creating a blank line: \newcommand{\blank}[1]{\rule{#1}{0.4pt}} However, because this is a user-defined command, LaTeX doesn't seem to ...
12
votes
2answers
2k views

Test if a paragraph has a page break in it?

I'm trying to use TikZ to make fancier frames. I'm using the clever \tikzmark thing that Andrew Stacey wrote to put nodes at the top left and bottom right of the body of an environment. Then I use ...
8
votes
2answers
1k views

How to calculate width of remaining part of line

I wish to create section heading using titlesec like image But I have some difficulties in determining the width of remaining of line to include blue box containing section label, my method ...
3
votes
1answer
2k views

How to make a graphic fill the rest of a given space?

Sometimes I use a figure numbering style in which each number is placed to the left of a figure. When using this formatting, I try to make sure that the space occupied by a given number and figure is ...
6
votes
1answer
278 views

Make an \fbox of the remaining line width in `exam` class

I'm writing a math test in the exam class, and I want to make framed boxes for the students to write their answer in. I've tried this solution, but the box exceeds the right page margin by 6.79999pts. ...
4
votes
1answer
870 views

Faulty page-break in longtable: starts with endfoot

while intensively using the longtable environment, I ran into a situation where a the table is broken to the next page immediately after its endfoot line, without any real table row on the starting ...
6
votes
1answer
112 views

autofill with square-pattern (leaders vs. tikz)

I want to autofill the rest of the line with a gray square-pattern in order give students an area to submit their mathimatical thoughts. My solution is so far: \newcommand\mySE{\vrule height 1pt ...
1
vote
1answer
138 views

How can I customize a theme independent note page? (beamer)

I would like to create a custom note page in beamer which sould look like this However, the layout of this note page will vary greatly depending on the current theme settings. If I am to change the ...
4
votes
1answer
44 views

Auto linefeed of node text in tikz

\node by tikz is used to get an effect of text highlight. It's all right except that the node text can not automatically linefeed. Is there a better way to achieve this? MWE: \documentclass{article} \...
3
votes
1answer
66 views

tikz — using the remaining space of a line of text for squarepattern

For my math-lessons I'm searching for an easy way to fill the remaining space of a line with a squarepattern. There are some disadvantages with leaders (alignment, see autofill with square-pattern (...
2
votes
1answer
37 views

LaTex how to auto break line within text subscript environment

I'm using \newcommand{\textss}[1]{\textsubscript{\,\underline{#1}}} to make text comment like this: Here are some text\textss{and I made some comments here, but the text maybe too long to feed a ...