On 10/07/2016 02:57 PM, -- wrote:
First, I have no idea about books in general, acm-book in particular, so someone else will need to chime in on that one.On Fri, Oct 7, 2016 at 1:32 PM, -- <[email protected] <mailto:[email protected]>> wrote:On Fri, Oct 7, 2016 at 12:53 PM, Paul A. Rubin <[email protected] <mailto:[email protected]>> wrote: On 10/07/2016 12:22 PM, -- wrote:I did that with asana and it didn't work and it also screwed up other stuff. \bagmember appeared in red. On Fri, Oct 7, 2016 at 9:46 AM, Paul A. Rubin <[email protected] <mailto:[email protected]>> wrote: On 10/07/2016 06:37 AM, -- wrote:Hi, I have two (possibly related) problems. 1) I'm trying to enter the character \bagmember in an equation. This is Unicode 22FF, and it's available in several packages (asana-math, stix, boisik). I've followed the instructions (used the MiKTeX package manager, refreshed the database, reconfigured LaTeX) and installed asana and boisik, but when I enter \bagmember it is not recognized. 2) I'm trying to install the acm-book document class. I followed their instructions as best I could, but they are for LaTeX, not LyX, so I didn't get very far. In both cases, when inspecting various system settings and files, they seem to show that the respective packages are there, yet I can't use them. I got no error messages. I'm running LyX 2.1.5 on Win XP with SP3. Thanks for any help you can give. JacobDid you try putting \usepackage{stix} in the document preamble? PaulJacob, Please (a) bottom post rather than top post and (b) copy the list so that others see the full thread. What are you using to compile the document? According to the thread at https://tex.stackexchange.com/questions/259118/asana-math-font-in-latex <https://tex.stackexchange.com/questions/259118/asana-math-font-in-latex>, Asana is not compatible with pdflatex; it needs either xetex or luatex. In contrast, I was able to compile a test document containing \bagmember with pdflatex by adding \usepackage{stix} to the preamble. Paul Thanks, Paul, stix worked. Is there a way to shrink the symbol? It's bigger than the capital letters surrounding it. Also, is there a way to overstrike it with a /, as negation, similar to non-membership for sets? And finally, if somebody has an idea for my second question, about using acm-book.Well, spoke too soon. The \bagmember symbol displays OK on the screen in LyX, but when I try to compile to pdf I get an error: !pdfTeX error: pdflatex (file stix-mathit): Font stix-mathit at 360 not found. If I add the option nomath to stix, then I get an error that \bagmember is undefined.
Second (not taking these in order), I'm not sure what to make of the pdfTeX error. It seems to be looking for something (\bagmember?) in an italic math font. On my system, \bagmember renders as an upright character, not italic. Any chance you're using \bagmember inside an environment that would be trying to italicize it? (I could be way off base on this.)
Regarding negating and shrinking it, they're doable, but the best way I could find involves adding the graphicx package in the preamble (unless it's already being loaded for some other reason) and using a couple of macros that are /very/ finicky to create. I'm attaching a minimal example, from which you can copy the macros (one for bagmember, one for negated bagmember).
The macros are a total kludge. You can adjust the parameter of the scalebox (0.6 in the demo) to make the bagmember symbol larger or smaller, and you can (and likely will need to) adjust the offset in the raisebox (2pt in the demo) to get the symbol approximately centered vertically. Maybe someone more LaTeX-savvy can improve on these.
One aesthetically displeasing aspect: the diagonal negation line is only as tall as the bagmember symbol, so it does not stick out the top and bottom. There may be a way to fiddle with that, but it's beyond my skills.
Paul
newfile1.21.lyx
Description: application/lyx
