pfmc-assessments / lingcod

https://pfmc-assessments.github.io/lingcod/
2 stars 2 forks source link

shortcut for 40°10′ N #91

Closed iantaylor-NOAA closed 3 years ago

iantaylor-NOAA commented 3 years ago

Is there an easy way to define $40^\circ 10^\prime$ N so that we can call it more easily?

kellijohnson-NOAA commented 3 years ago

You bet, do you want latex or R?

iantaylor-NOAA commented 3 years ago

Probably latex, but whatever is easy to insert into .Rmd text, such as https://github.com/iantaylor-NOAA/Lingcod_2021/blob/ea421f9e59c62316b511d0a73c0366202b0f9c54/doc/12lifehistory.Rmd#L241

iantaylor-NOAA commented 3 years ago

I'm just trying to speed up my writing, but eventually we could also go back and find/replace a few cases of 40$\circ 10\prime$ N (which doesn't format as well) along with 40 degrees ten minutes and 40 degrees 10 minutes N latitude.

melissamonk-NOAA commented 3 years ago

Here's my solution: \newcommand\CapeM{$40^\circ 10^\prime$} \CapeM

On Wed, Jun 23, 2021 at 2:18 PM Ian Taylor @.***> wrote:

I'm just trying to speed up my writing, but eventually we could also go back and find/replace a few cases of 40$\circ 10\prime$ N (which doesn't format as well) along with 40 degrees ten minutes and 40 degrees 10 minutes N latitude.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/iantaylor-NOAA/Lingcod_2021/issues/91#issuecomment-867165922, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWRXM3PDRPG3QDQUEMLM6TTUJFSBANCNFSM47GSXOJQ .

-- Melissa Monk, Ph.D. (she/her) Fisheries Ecology Division National Marine Fisheries Service National Oceanographic and Atmospheric Administration 110 McAllister Way Santa Cruz, CA 95060

kellijohnson-NOAA commented 3 years ago

Sorry for the delay, I broke something else, but I am up and running now. You can use \break4010 and if you want to specify something else you can use \textdegree for the dot and \textquotesingle for prime without having to go into math mode.

MM beat me ... I will change to CapeM instead of break4010.

melissamonk-NOAA commented 3 years ago

Here are the three common ones I use and put in the 00a.Rmd

\newcommand\CapeM{$40^\circ 10^\prime N$} \newcommand\PtC{$34^\circ 27^\prime N$} \newcommand\CAOR{$42^\circ 00^\prime N$}

Call them in R markdown using \CapeM, \PtC or \CAOR, for Cape Mendocino, Pt. Conception and the CA OR border

On Wed, Jun 23, 2021 at 2:30 PM Kelli Johnson @.***> wrote:

Sorry for the delay, I broke something else, but I am up and running now. You can use \break4010 and if you want to specify something else you can use \textdegree for the dot and \textquotesingle for prime without having to go into math mode.

MM beat me ... I will change to CapeM instead of break4010.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/iantaylor-NOAA/Lingcod_2021/issues/91#issuecomment-867172509, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWRXM63QD5QO4TPFX7IP2DTUJG5RANCNFSM47GSXOJQ .

-- Melissa Monk, Ph.D. (she/her) Fisheries Ecology Division National Marine Fisheries Service National Oceanographic and Atmospheric Administration 110 McAllister Way Santa Cruz, CA 95060

iantaylor-NOAA commented 3 years ago

Thank you @melissamonk-NOAA and @kellijohnson-NOAA, this is perfect. I like \CapeM.