Skip to content

Commit bdc2697

Browse files
committed
update link.tex (add \href and \hyperref)
1 parent 8f00fd1 commit bdc2697

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

link/link.tex

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,39 @@
1010
\end{abstract}
1111
\maketitle
1212

13-
Here is one link: \link{http://ximera.osu.edu}
13+
\section*{Basic Usage}\label{sec:link:basicUsage}
1414

15-
Here is another link: \link[ximera]{http://ximera.osu.edu}, make sure that the spacing after the period looks good.
15+
With \verb|\link{url}| you make a hyperlink: \link{http://ximera.osu.edu}.
1616

17-
Here sometimes you might have a \link[ximera]{http://ximera.osu.edu} with words after it. Make sure this looks good too.
17+
With \verb|\link[text]{url}| you display 'text', and not the url: \link[ximera]{http://ximera.osu.edu}.
18+
19+
20+
21+
Notes:
22+
\begin{itemize}
23+
\item \label{link_spaces} Note the spaces in and after a \link[link to ximera]{http://ximera.osu.edu} in a sentence.
24+
\item \label{link_bold} You might want a bold \textbf{\link[link to ximera]{http://ximera.osu.edu}}, or a link with a bold 'ximera' in it: \link[link to \textbf{ximera}]{http://ximera.osu.edu}.
25+
\item \label{link_footnote} The PDF puts links in footnotes\footnote{This is just a normal footnote} at the bottom of the page.
26+
\end{itemize}
27+
28+
Alternatives:
29+
30+
With \verb|\url{url}| you make a hyperlink: \url{http://ximera.osu.edu}.
31+
32+
With \verb|\href{url}{text}| you display 'text', and not the url: \href{http://ximera.osu.edu}{ximera}.
33+
34+
With \verb|\hypertarget{label}{text}| you can create a target to link to: \hypertarget{ht_bold}{this text is important enough to be linked to}.
35+
36+
With \verb|\hyperlink{label}{text}| you can (NOT???) link to a label: see also \hyperlink{ht_bold}{the previous sentence}.
37+
38+
With \verb|\hyperlink{label}{text}| you can also link to a normal \verb|label|: see the item about \hyperlink{link_bold}{bold in links}, or the section with \hyperref[sec:link:intendedOutcome]{outcomes}.
39+
40+
\section*{Intended Outcome of Test}\label{sec:link:intendedOutcome}
41+
42+
TODO
43+
44+
45+
% Compiled at \today\ at \currenttime %% needs datetime
1846

1947

2048
\end{document}

0 commit comments

Comments
 (0)