Thank both of you. I have made a mix of the two. I found a command in the hyperref package called \nameref and combined it with your suggestions. What I have gotten out of it is the following command
\newcommand{\secref}[1]{\hyperref[#1]{\textit{section \ref{#1}: \nameref{#1}}}}
\newcommand ...
Search found 5 matches
- Mon Nov 09, 2009 4:50 pm
- Forum: Text Formatting
- Topic: How do I write a custom reference command?
- Replies: 3
- Views: 8878
- Mon Nov 09, 2009 1:08 pm
- Forum: Text Formatting
- Topic: How do I write a custom reference command?
- Replies: 3
- Views: 8878
How do I write a custom reference command?
Hello All
I am trying to rewrite a reference command.
Currently I use the current latex code
\section{Theory - ABC}\label{sec:theory_abc}
Text etc.
In \textit{ Section \ref{sec:theory_abc}: Theory - ABC}
I would like to make a \newcommand{secref} that would output this automatically, so I only ...
I am trying to rewrite a reference command.
Currently I use the current latex code
\section{Theory - ABC}\label{sec:theory_abc}
Text etc.
In \textit{ Section \ref{sec:theory_abc}: Theory - ABC}
I would like to make a \newcommand{secref} that would output this automatically, so I only ...
- Thu Nov 05, 2009 11:35 am
- Forum: Page Layout
- Topic: Latex writing below my footer in some cases
- Replies: 1
- Views: 2494
Re: Latex writing below my footer in some cases
Hello all
Just gonna post a reply, since I "may" have found a workaround. The error does not show in appr. 30 pages of this, but proving that and error is gone is always difficult :)
Anyway.... what I had in the document was a longtable for my long tables, and a normal table for noteboxes and some ...
Just gonna post a reply, since I "may" have found a workaround. The error does not show in appr. 30 pages of this, but proving that and error is gone is always difficult :)
Anyway.... what I had in the document was a longtable for my long tables, and a normal table for noteboxes and some ...
- Thu Nov 05, 2009 10:56 am
- Forum: General
- Topic: Conditional pagebreaks and current page position
- Replies: 0
- Views: 1300
Conditional pagebreaks and current page position
Hello All
I am trying to make a conditional page-break. More specifically, I want to create a new page before inserting a new table if I'm below, say, .9 of the \texhheight. Is there any way of getting the current text position?
Also, which package is best for doing conditional statements in latex ...
I am trying to make a conditional page-break. More specifically, I want to create a new page before inserting a new table if I'm below, say, .9 of the \texhheight. Is there any way of getting the current text position?
Also, which package is best for doing conditional statements in latex ...
- Wed Nov 04, 2009 5:14 pm
- Forum: Page Layout
- Topic: Latex writing below my footer in some cases
- Replies: 1
- Views: 2494
Latex writing below my footer in some cases
Hello all
Edit: I have found a smaller minimum working example, which is now included!
I'm working on creating a tool for creating an automatic latex document from a c++ header file. This works quite well, and I have defined some \newcommand to help reduce the size of the autogenerated file, as ...
Edit: I have found a smaller minimum working example, which is now included!
I'm working on creating a tool for creating an automatic latex document from a c++ header file. This works quite well, and I have defined some \newcommand to help reduce the size of the autogenerated file, as ...