\citeyear and \citeauthor do not create hyperlinks
Getting hyperref to work with \citeyear and \citeyearpar in biblatex
fp - How to keep running sum in variable? I have this code in my LaTeX:   \FPset{totalHours}{0}  \newcommand{\entry}[5]{     \FPeval{totalHours}{(totalHours)+#5}     #1 &amp; #2 &amp; #3 &amp; #4 &amp; #5 \\ }   Where \entry is meant to be an entry in a time log. The 5th argument is a number representing the number of hours in that entry. I want to keep a running total of the hours in a variable I can print later on, totalHours.   This seems to do the \FPeval but then totalHours gets reset to 0 by the next time I write \entry. What is the correct way to keep a running total? Thanks. Is there any way of making a snow golem survive in hot biomes? Snow golems won't survive in the Nether (neither spawned in nor built ones). Is there a way to make a snow golem survive in the Nether and other hot biomes in vanilla Minecraft (i.e., without using mods)? So from what I understand transistors are one of the most important electronic elements for computers because of TTL (Transistors-Transistors Logic).  Is this true? If so, how exactly does this work? I have heard the terms "logic gate" and "logic block" tossed around. Database Design Best Practices $[F(t):F(t^n)]=n$ where $t$ is trascendental How to make all polygons into triangles Why did Voldemort hide two Horcruxes in Hogwarts? Sometimes I want to underline some text, and it extends past the end of a line.  Why does \underline{} not automatically wrap my text for me ?    Also, how can I underline text so that it will still wrap ? Problem printing LaTeX from lua in lualatex I am having difficulty printing LaTeX from a lua function in a LaTeX document processed with lualatex (version 0.70.2). I have a sample that works (if I remove all newlines from the code) and a case that fails. I don't know why these get different results. Here is the sample that fails:  \documentclass{report} \usepackage{luacode} \begin{document}  \begin{luacode*} tex.sprint([[ \begin{tabular}{ | l | l | p{4.in} | }  \hline  {\bf File} &amp; {\bf Cards} &amp; {\bf Summary} \\ \hline  \end{tabular} ]]) \end{luacode*}   \end{document}   I get an error saying:  ! Misplaced \noalign. \hline -&gt;\noalign               {\ifnum 0=`}\fi \hrule \@height \arrayrulewidth \futurelet... l.22 \end{luacode*}   When I put all of the LaTeX code printed from lua on one line the code works fine:  \documentclass{report} \usepackage{luacode} \begin{document}  \begin{luacode*} tex.sprint([[ \begin{tabular}{ | l | l | p{4.in} | } \hline {\bf File} &amp;{\bf Cards} &amp; {\bf Summary} \\ \hline \end{tabular} ]]) \end{luacode*}   \end{document}   So I have a few question.  First, why does the first example shown above fail? It seems like something I am not aware of is being inserted into the generated LaTeX.  Also is there a way for me to see the actual LaTeX that is generated and processed so that I can debug issues like this better?  Is there a way to tell the lualatex to log the actual LaTeX it tries to process?  Any other suggestions for how to debug a problem like this? When to use an object pronoun or a possessive adjective before a gerund The rule says that we can use a possessive adjective or an object pronoun before a gerund. Is there a rule  that says when to use each or are they interchangeable? Some say that it's wrong to use an object pronoun before a gerund. How can I change the field names (not the alias) in ArcGIS 10.2? I already found this page on ArcGIS support: &quot;&quot; but there is is not &quot;Defense Mapping&quot; on Customized Mode Categories In my ArcCatalog! Without access to Defense Mapping, how can I change the field names? Regex for splitting a string using space when not surrounded by single or double quotes Reputation misaligned in new topbar Entering Time data in excel in mm:ss format (without the leading 0: for the hours) How can I move Steam games to another disk? Is being a Cauchy sequence equivalent to $ \lim_{n\to+\infty}d(x_{n+k},x_n)=0$ for every $k$? Is this statement true?      In a metric spase $(E,d)$, a sequence $(x_n)$ is Cauchy if and only if $  \forall k\in \mathbb{N}, \lim_{n\rightarrow+\infty}d(x_{n+k},x_n)=0$   I proved that $\Rightarrow$ is true,indeed if $(x_n)$ is Cauchy then for all $\varepsilon&gt;0,\exists n_0\in\mathbb{N}, \forall p,q\geq n, d(x_p,x_q)&lt;\varepsilon$ it still right for all $ n\geq n_0$ and $m=n+k&gt;n\geq n_0$   But I don't know if $\Leftarrow$ is true ? What is postselection in quantum computing? A quantum computer can efficiently solve problems lying in the complexity class . I have seen a claim the one can (potentially, because we don't know whether BQP is a proper subset or equal to PP) increase the efficiency of a quantum computer by applying postselection and that the class of efficiently solvable problems becomes now postBQP = .  What does postselection mean here? A script on AIX which checks the number of parameters passed and complains if they are not correct:-  if [ "$#" -ge 1 ]; then   ... else   echo 'Usage: myscript &lt;a&gt; [b] [c]' fi   The script sets some environment variables so it is sourced. By that I mean I type the following on my command line. There is no second script, I am not sourcing a script from within another script.  . ./myscript.sh   If I pass it no parameters, I expect it to print out the usage statement but instead it runs using the parameters passed to the previous command that was sourced (not necessarily even this script!).  To double check this I added this line at the beginning of my script to prove that this was the case.  echo $# $@   If I pass it no parameters, it prints out the number and the list of parameters from a previously sourced script.  How do I get it to say $# is zero when I pass it zero parameters and source it?  The smallest possible recreate is a script thus:-  myscript.sh  echo $# $@   and then run it thus:-  . ./myscript.sh a b c   which prints out  3 a b c   then run it again without any parameters thus:-  . ./myscript.sh   which prints out the same  3 a b c   when you would expect it to print out  0   If you don't source the script and just run it thus:-  ./myscript.sh   then it works as expected and prints out  0   I hope that clarifies the issue at hand.  Since I seem to be getting lots of answers to explain why the above doesn't work and no answers to tell me what I should do instead, I thought I would have one more attempt at trying to explain what I am trying to do.  Requirement  I need to write a script that expects at least one parameter and complains if it is not invoked with a said parameter (see the first block of code in my question above), and this script needs to set some environment variables. Because of this second requirement I have assumed that I need to source the script so that the environment variables are still set when the script completes. How can you write a script that can tell when it has not been passed parameters that is also able to set an environment variable? Where do I put the code snippets I found here or somewhere else on the web? Many posts here or somewhere else contain code, but they do not say where to put it.  Example:  I have found this post:  I'm a newbie with PHP. Where exactly should I place the code from the answer? Why do the Walking Dead Zombies only show intelligence in the very first episode? I enjoy The Walking Dead, however one question keeps nagging me. The 'Walkers' are always shown to not have any intelligence or memory of having been human. This is for all seasons except the very first one.  In the very first scene of Season One, Episode One, we see a little zombie girl stop to deliberately pick up a teddy bear from the ground.   Later in the same episode we see a zombie apparently try to turn the door knob to get into Morgen Jones' house.  Also at Atlanta they can climb fences and used rocks to break glass.  After season 1 I do not recall seeing any such intelligence demonstrated by a zombie again.  My question is: are these initial displays of intelligence a discrepancy in the story, or is there a plausible explanation why the Walkers performed these actions?