-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option for grey box around key bullets in each section? #203
Comments
Maybe the tcolorbox package would work? See the part that starts with \documentclass{article}
\usepackage{lipsum}
\usepackage{lmodern}
\usepackage{tcolorbox}
\begin{document}
\lipsum[2]
\begin{tcolorbox}[sharp corners, boxrule=0.2mm]
\subsection*{Key Points:}
\begin{itemize}
\item The revised Fisheries Act includes new Fish Stocks provisions that introduced legal
obligations to manage major fish stocks at levels necessary to promote sustainability,
avoid limit reference points, and implement plans to rebuild stocks that have declined to,
or below, a limit reference point, all while taking into account the biology of the fish and
environmental conditions facing the stock.
\end{itemize}
\lipsum[2]
\end{tcolorbox}
\end{document} There are a lot of options for formatting. https://tools.ietf.org/doc/texlive-doc/latex/tcolorbox/tcolorbox.pdf You'd have to add
in the YAML header and it would only work in PDF output. We might be able to do it in Word output by creating a style. Also, using the TeX environment would mean the text in between |
Thanks. This looks promising. However, I'm having difficulty downloading the tcolorbox, after adding - \usepackage{tcolorbox} in the Index file under header-includes. TeXLive::TLUtils::check_file_and_remove: checksums differ for C:\Users\HoltC\AppData\Local\Temp\1\R9VPGGbimA\A1jSDMm3OI/tcolorbox.tar.xz: I will try recreating the error in a blank csasdown template, and send to you (unless you have any initial thoughts) |
Are you using tinytex in R for LaTeX or something else? |
Yes, I'm using tinytex in R for LaTeX. |
I'm not sure. This could be any number of TeX things from the server just being down when you tried it. I assume: tinytex::tlmgr_install("tcolorbox") still fails? You could try changing the texlive server: tinytex::tlmgr_repo("https://ctan.math.ca/tex-archive/systems/texlive/tlnet") I think the default is and then tinytex::tlmgr_install("tcolorbox") Although the above should work regardless, you could also check your texlive version: tinytex::tlmgr_version()
#> tlmgr revision 60693 (2021-10-04 04:24:25 +0200)
#> tlmgr using installation: /Path/to/your/Library/TinyTeX
#> TeX Live (https://tug.org/texlive) version 2021 |
Those didn't work. However I had this message, "tlmgr.pl: Local TeX Live (2020) is older than remote repository (2021)..... The error message I get is: Please try from a different mirror and/or wait a few minutes and try again; usually this is because of transient updates. If problems persist, feel free to report to [email protected] However, I'm not sure how to change the mirror (repository) in the installation of packages. E.g., tinytex::tlmgr_install ("nccmath") |
The entire error when I try to knit now is: C:\Users\HoltC\AppData\Roaming\TinyTeX\texmf-dist\scripts\texlive\tlmgr.pl: signature verification error of C:/Users/HoltC/AppData/Roaming/TinyTeX/tlpkg/texlive.tlpdb.main.f5c4932332eb88bb88cf51695a8348dc from https://www.ctan.org/tex-archive/systems/texlive/tlnet/tlpkg/texlive.tlpdb: cryptographic signature verification of Please try from a different mirror and/or wait a few minutes ! LaTeX Error: File `nccmath.sty' not found. ! Emergency stop. Error: LaTeX failed to compile resdoc.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See resdoc.log for more info. |
You can set the repository back to what I think is the default with: tinytex::tlmgr_repo("https://mirror.ctan.org/systems/texlive/tlnet") which is probably worth doing. I think this is a problem on the texlive server side, but I'm not sure. E.g. rstudio/tinytex#213 Other possible mirrors: https://ctan.org/mirrors/mirmon |
Working now. Thanks! |
Is it possible to generate grey boxes around key bullets in each section, as is in Kronlund et al. 2021 CSAS Res Doc: https://waves-vagues.dfo-mpo.gc.ca/Library/40998034.pdf
The text was updated successfully, but these errors were encountered: