Skip to content

etoolbox ifstrequal repeated output #11253

@shea12shea12

Description

@shea12shea12

Hello,

I am attempting to use etoolbox for various logical operators to conditionally write text. I can't seem to understand how \ifstrequal behaves. Specifically, I am getting two outputs when a condition is met. Is this intended? Am I using this incorrectly? I am not sure how I could provide the output of my working example, but I get:

Test1: TRUETRUE
Test2: FALSEFALSE

I have previously posted this issue here: LINK, and was referred to report this issue to the pandoc github.

Thank you in advance for taking the time to read and reply.

-Alan

Working Example in Rmarkdown:


output: pdf_document
header-includes:

  • \usepackage{etoolbox}

Test1: \ifstrequal{hello}{hello}{TRUE}{FALSE}

Test2: \ifstrequal{hello}{world}{TRUE}{FALSE}

edit: excuse me as I can't seem to be able to properly mark the above as code

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions