0

I am using the awesome-cv template and after the first entry in some categories, the second entry has an indent.

Here is my pared down code to illustrate the issue:

---
name: name
position: "position"
address: "address"
phone: "number"
www: website
email: email
twitter: twitter
github: github
linkedin: linkedin
headcolor: 54a474
date: "`r format(Sys.time(), '%B %Y')`"
output: vitae::awesomecv
always_allow_html: yes
header-includes:
  \usepackage{multicol}
  \usepackage{colortbl}
  \arrayrulecolor{white}
  \usepackage{hhline}
  \definecolor{light-gray}{gray}{0.95}
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE, warning = FALSE, message = FALSE)
library(vitae)
library(tidyverse)
library(pander)
library(googlesheets4)
library(glue)
library(yaml)
library(knitr)
library(tinytex)

# Define a custom function for printing nice lists for the publication and talks sections:
catList <- function(x, out.format = knitr::opts_knit$get("out.format"),
                      environment = "itemize",
                      marker = NULL) {
  if (out.format == "markdown") {
    if (!missing(environment) || !missing(marker)) {
      warning("Ignoring arguments that are not supported for markdown output.")
    }
    out <- sprintf("\n\n%s\n \n", paste("*", x, collapse = "\n"))
  } else {
    if (out.format == "latex") {
      itemCommand <- if (missing(marker)) {
        "\\item"
      } else {
          sprintf("\\item[%s]", marker)
      }
      listEnv <- c(
        sprintf("\\begin{%s}\n", environment),
        sprintf("\n\\end{%s}\n", environment))
      out <- paste(itemCommand, x, collapse = "\n")
      out <- sprintf("%s%s%s", listEnv[1], out, listEnv[2])
    } else {
      stop("Output format not supported.")
    }
  }
    return(knitr::asis_output(out))
}

# Read in data:
gs4_deauth()
CVData <- read_sheet("https://docs.google.com/spreadsheets/d/1eHyUH_B97kMHDvq4De-o3_97gVJZiHv1gEAxwBdxLiA/edit?usp=sharing")

# Process data into sub-tibbles:
Education <- dplyr::filter(CVData, Category == "Education")
Experience <- dplyr::filter(CVData, Category == "Experience")
Teaching <- dplyr::filter(CVData, Category == "Teaching")
Awards <- dplyr::filter(CVData, Category == "Awards")
Service <- dplyr::filter(CVData, Category == "Service")
Outreach <- dplyr::filter(CVData, Category == "Media & Outreach")
Publications <- dplyr::filter(CVData, Category == "Publications")
Talks <- dplyr::filter(CVData, Category == "Talks")
Skills <- dplyr::filter(CVData, Category == "Skills and Training")
Societies <- dplyr::filter(CVData, Category == "Societies")
Collections <- dplyr::filter(CVData, Category == "Collections Visited")
```

# Education 
```{r}
detailed_entries(Education, 
                 when = glue("{Start}--{End}"),
                 what = Supervisor,
                 where = Institution,
                 with = Position,
                 why = Details)
```

# Publications
**In Review:**
\scriptsize
```{r}
Publications %>%
filter(Type == "In Review") %>%
pull("Details") %>%
catList()

```
\normalsize
**In Preparation:**
\scriptsize
```{r}
Publications %>%
filter(Type == "In Preparation") %>%
pull("Details") %>%
catList()

```
\normalsize

\scriptsize
```{r}
#Publications %>%
#filter(Type != "Published") %>%
#pull("Details") %>%
#catList()
```
\normalsize[![enter image description here][1]][1]

Here is a screenshot of the issue:enter image description here

Please let me know if there is anything else I can do to help troubleshoot.

4
  • Welcome to TeX.SE! // Unfortunately there is little use in pasting very long code and links. I suggest trying this: a) make a copy of your document, b) delete almost everything BESIDES the parts which will demonstrate your problem. (MWE = Minimal Working Example), c) post this here and enclose it in {} in the edit window . // The code needs to reflect the CV-content you'd like to produce. // Thanks
    – MS-SPO
    Aug 26, 2021 at 17:04
  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer.
    – Community Bot
    Aug 26, 2021 at 17:04
  • @MS-SPO thanks for your help. I have pared it down as much as I possibly can while still getting the issue to produce. There is likely more I could pare but I am quite inexperienced with LaTex.
    – jakecas
    Aug 26, 2021 at 18:05
  • I have added the italics issue as a separate question.
    – jakecas
    Aug 26, 2021 at 18:12

1 Answer 1

1

Not sure, what you are doing, and pretty sure, it won't compile in my system ;-)

As a kind of template, your code should at least have these 3 elements:

  • documentclass
  • packages you are using
  • code inside the document-environment

I.e. it should at least look like this:

\documentclass{article}% i.e. the documentclass, you are using
\usepackage{multicol}
% other packages you use

\begin{document}
    % put your code here
\end{document}

Let me make a guess: are you using overleaf https://www.overleaf.com/latex/templates/awesome-cv/dfnvtnhzhhbm ? If so, next time please put it in your opening question. This group is all about Questions&Answers, which differs somewhat from other discussion forums ;-)

I have to stop, as I'm not providing a solution (which is at least very hard to do at the moment), and I start giving opinions ... which does not comply with this places rules.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .