frampton / ExPex

6 stars 5 forks source link

question: different textoffset values for \pex and \ex ? #10

Open jonorthwash opened 5 years ago

jonorthwash commented 5 years ago

Is it possible to have different textoffset values for examples with labelled parts as opposed to examples without parts?

One example of what this might accomplish is to have labels start at the same distance from the margin as partless example text, while having a smaller textoffset for examples with parts. Currently I can't figure out how to do this.

frampton commented 5 years ago

If I had this problem, I would define a style to do what I want. Then say

\pex[lingstyle=…]

If it was something I thought that a lot of users would use, I would define an Everypex to go along with Everyex and modify the \pex micro so that it executed Everypex in the appropriate place.

Are you just curious, or is it something that you need?

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10


From: Jonathan Washington notifications@github.com Sent: Sunday, March 17, 2019 6:13:20 PM To: frampton/ExPex Cc: Subscribed Subject: [frampton/ExPex] question: different textoffset values for \pex and \ex ? (#10)

Is it possible to have different textoffset values for examples with labelled parts as opposed to examples without parts?

One example of what this might accomplish is to have labels start at the same distance from the margin as partless example text, while having a smaller textoffset for examples with parts. Currently I can't figure out how to do this.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fframpton%2FExPex%2Fissues%2F10&data=02%7C01%7Cj.frampton%40northeastern.edu%7C09c603a45241412e9d8808d6ab25c43a%7Ca8eec281aaa34daeac9b9a398b9215e7%7C0%7C0%7C636884576031618838&sdata=8jMl1hmmbplafPoiL6ebvq0kM77SSrO7w0nKeYeGWe8%3D&reserved=0, or mute the threadhttps://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAA29RIruWSDFhGjE-PmybtDlV-FTt5-cks5vXr4AgaJpZM4b4rcw&data=02%7C01%7Cj.frampton%40northeastern.edu%7C09c603a45241412e9d8808d6ab25c43a%7Ca8eec281aaa34daeac9b9a398b9215e7%7C0%7C0%7C636884576031618838&sdata=INq4R6zZfdhX2IQzJDLv9nrUmu6Di8ZPUIiSp6J2Bso%3D&reserved=0.

jonorthwash commented 5 years ago

is it something that you need?

Yeah, I'm working on a stylesheet for a proceedings: https://github.com/jonorthwash/tuplus4-style

I can easily enough make a style as you suggest, but it wouldn't be very LaTeXy to expect users of the stylesheet to use that style for every \pex they include.

frampton commented 5 years ago

Then I think you can probably:

  1. Change the definition of \pex@d so that it calls \pex@setup instead of \ex@setup.
  2. Define \pex@setup by taking the definition of \ex@setup and altering it in the appropriate way.

This can most likely be done by leaving expex.tex untouched and making a new mini-package expex-add.tex which is input on top of expex.

Can you send me the proceeding’s style sheet so I can see what you are required to do?

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10


From: Jonathan Washington notifications@github.com Sent: Sunday, March 17, 2019 11:38:05 PM To: frampton/ExPex Cc: Frampton, John; Comment Subject: Re: [frampton/ExPex] question: different textoffset values for \pex and \ex ? (#10)

is it something that you need?

Yeah, I'm working on a stylesheet for a proceedings: https://github.com/jonorthwash/tuplus4-stylehttps://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjonorthwash%2Ftuplus4-style&data=02%7C01%7Cj.frampton%40northeastern.edu%7C676e0bd3d20b47cb788608d6ab5321bc%7Ca8eec281aaa34daeac9b9a398b9215e7%7C0%7C0%7C636884770880587037&sdata=tcS3FAKwFeBzmrv%2B5zl6YfUzU03ZDbdSQep%2Fr9TIWag%3D&reserved=0

I can easily enough make a style as you suggest, but it wouldn't be very LaTeXy to expect users of the stylesheet to use that style for every \pex they include.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fframpton%2FExPex%2Fissues%2F10%23issuecomment-473758849&data=02%7C01%7Cj.frampton%40northeastern.edu%7C676e0bd3d20b47cb788608d6ab5321bc%7Ca8eec281aaa34daeac9b9a398b9215e7%7C0%7C0%7C636884770880587037&sdata=oSP8X%2BbEePanbkMgs3qdBpKDj70W0P6e5sc5DmGZ00M%3D&reserved=0, or mute the threadhttps://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAA29RL3jERVML7L6hLHJG3ILpGmv3BJJks5vXwodgaJpZM4b4rcw&data=02%7C01%7Cj.frampton%40northeastern.edu%7C676e0bd3d20b47cb788608d6ab5321bc%7Ca8eec281aaa34daeac9b9a398b9215e7%7C0%7C0%7C636884770880597042&sdata=%2Bzm9Xd3nPlphVw%2BhI4XtxcQK%2FXbeLQ7%2F41EdL2Eqq1U%3D&reserved=0.