The third highest-ranking person (highest-ranking woman) in the Tibetan Buddhist hierarchy is a high-ranking Chinese cadre and has, as a result, been accused of "collaborating" with China
The third highest-ranking person (highest-ranking woman) in the Tibetan Buddhist hierarchy is a high-ranking Chinese cadre and has, as a result, been accused of "collaborating" with China
#TodayILearned that Erik Fleming, the man who supplied the massive amounts of illegal ketamine that eventually killed Matthew Perry, was actually a licensed drug counselor, a secret addict himself, as well as a failed Hollywood director whose biggest IMDB credit is a couple of episodes of "America's Funniest Home Videos" back in the 1990s.
TIL: Here’s a look at the EEWWW! Surprising, shocking, and oddly practical substances secretly shaping what we eat and drink. Crushed insects, fish bladders, and even wood pulp? Some of the food ingredients hiding in everyday eats are stranger than fiction. #foodhistory #Foodculture #FoodCultureBites #FoodIngredients #food
https://foodculturebites.com/whats-really-hiding-in-your-food-ingredients/
#TodayILearned that the US government originally planned on displaying George Washington's corpse in a crypt in the basement of the just-completed Capitol Building, with a glass floor directly above it for viewing. Despite Washington clearly stating in his will that he wanted to be buried on his estate in Mt. Vernon, Congress tried to move the body in 1800, 1816, 1824, 1829, and 1830, but partisan bickering prevented the votes from passing.
https://en.wikipedia.org/wiki/Washington%27s_Tomb_(United_States_Capitol)
#TodayILearned that during the last couple of years of "Happy Days," when everyone stopped watching and the show went completely off the rails, there was an entire episode in which the Fonz travels to the American South in order to combat racism.

So these were the steps:
1) I created an `\adsalmaurl` command where the part of the URL that contains `%` characters is after `\detokenizer`, while keeping the closing braces in the next line.
```latex
\newcommand{\adsalmaurl}{
https://ui.adsabs.harvard.edu/search/q=%5Cdetokenize%7B%2528%2528%2528abs%253AALMA%2529%2520AND%2520year%253A1996-2026%2529%2520AND%2520property%253Arefereed%2529%2520AND%2520collection%253Aastronomy
}}
```
2) Once the `\adsalmaurl` command is created, I can use it inside `\href`, but just in case it could have some interactions with `\footnote` I also created a new command:
```latex
\newcommand{\adsalmaquery}{\href{\adsalmaurl}{\small{\texttt{(((abs:ALMA) AND year:1996-2026) AND property:refereed) AND collection:astronomy}}}}
```
3) I then use the composed `\adsalmaquery` inside of the footnote:
```latex
\footnote{As per the following NASA Astronomical Data Service (ADS) query: \adsalmaquery}
```
This made \(\LaTeX\) happy, and so I was also happy… but wanted to share this mostly to future me, in case I forget why LaTeX complains about URL-encoded/quoted URLs again…
🧵 2/2
#TIL #TodayILearned #LaTeX #HyperRef #HRef #XURL #detokenizer #LaTeXQuirks #TIL #TodayILearned #LaTeX #HyperRef #HRef #XURL #detokenizer #LaTeXQuirks
Today I Learned that using quoted URLs in \(\LaTeX\) is quite tricky, and that `\detokenizer` is your friend.
I was trying to have a `\footnote` that pointed to the ALMA papers which are refereed, and that are published in the astronomy collection of the NASA Astronomy Database System (ADS) [1], and I was getting errors while trying to use
HyperRef's `\url` and `\href` commands, in particular a Runaway error inside footnote and href.
In the end, there were several issues that made LaTeX hickup on it.
The first one, the URL was not fully quoted, and needed to change `(` and `)` to their quoted versions,`%28` and `%29`, respectively, because the parenthesis were also considered suspect.
The second one, and is the main source of issues, is that `%`, in LaTeX, is the character for line comments: anything in the line after `%` is treated as a comment, unless it is in a verbatim environment… or inside `\detokenizer`.
Third, even with `\detokenizer{https://url.tld/%20quoted%20url}`, you might get issues.
So, what solved the issue?
🧵 1/2
#TIL #TodayILearned #LaTeX #HyperRef #HRef #XURL #detokenizer #LaTeXQuirks
TIL: Fidel Castro was widely considered a great hugger