Coder Social home page Coder Social logo

Conditional statements syntax about latex2e HOT 5 OPEN

matteofg avatar matteofg commented on May 20, 2024
Conditional statements syntax

from latex2e.

Comments (5)

FrankMittelbach avatar FrankMittelbach commented on May 20, 2024

commands added

from latex2e.

muzimuzhi avatar muzimuzhi commented on May 20, 2024

\IfExplAtLeastTF defined in ltexpl.dtx also needs T and F variants.

Then how about remaining \If...TF commands? Currently LaTeX2e kernel provides

  • \IfDocumentMetadataTF
  • \IfExplAtLeastTF
  • \IfHookEmptyTF
  • \IfHookExistsTF
  • \IfLabelExistTF
  • \IfMarksEqualTF
  • \IfPropertyExistTF
  • \IfPropertyRecordedTF
  • \IfPDFManagementActiveTF

BTW among all \If...Exist(s)TF commands, \IfHookExistsTF is the only one which uses third-person singular form Exists. Need a renaming (and keep old name for backwards compatibility)?

from latex2e.

car222222 avatar car222222 commented on May 20, 2024

\IfExplAtLeastTF is also the only one whose meaning is unnecessarily obscure:
what is Expl? and why does it have a date?

from latex2e.

muzimuzhi avatar muzimuzhi commented on May 20, 2024

@car222222 It tests the date of l3kernel bundled into the LaTeX2e format, see #1004.

\IfExpl3AtLeastTF would be better, but unfortunately digits don't have catcode 'letter' by default.

from latex2e.

car222222 avatar car222222 commented on May 20, 2024

@muzimuzhi : Thanks for the reference!

But I would never have worked that out from the name. Explthree or Expliii would be better, but even then it needs a very careful explanation of exactly what it means: what is it whose date is actually consulted (this turns out to be very obscure: and knowing that it is the date below does little to enlighten this).

I am unsure if it would be useful to explain that it refers to this, also very obscure, date: \ExplLoaderFileDate (but that at least has the word "File" in it!).

from latex2e.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.