I have the following external lua script: -- file mylua.lua function test(input)    tex.sprint(input) end  And the following lualatex document: \documentclass{article} \usepackage{luacode} \directlua{dofile(&quot;mylua.lua&quot;)}  \begin{document}  This works: \directlua{test(&quot;Hello world!&quot;)}  But this doesn't: \directlua{test(&quot;\textit{Hello world!}&quot;)} \end{document}  This is a simple example illustrating an error I get in a more complex code I'm writing. I moved my lua code to an external file, in order to avoid problems escaping characters. However, inevitably I have to use macros in my \directlua calls, and most of the times I cannot control what the macros are. Is there any way of avoiding this problem?
The interaction of TeX and Lua can be quite delicate at times.  While the former has category codes and tokens, the latter has escape sequences and datatypes.  Mixing the disparate concepts of these two worlds can lead to unexpected behaviour which favours common errors, known as gotchas. In the community wiki answer below you can find an overview of the common mistakes that people make when getting to grips with LuaTeX.
What are the details surrounding the brass brazier required for the Find Familiar spell? In our campaign, I play a warlock and brass braziers are hard to come by. I want to carry a brass brazier in case my familiar dies and I need to again cast find familiar.   How bulky is a small brass brazier? Can it be carried for several weeks without hindering long distance foot travel? That is, because of its shape or weight, does the typical brass brazier reduce my speed? What's the price of a small, simple brass brazier? How long would it take a brass worker to make a small, simple brazier? How long would it take the brass worker to make one specifically designed to be eminently portable? In both cases, assume the brass worker works nonstop exclusively on the brazier.     What I'm looking for are references, similar cases, and information that can help handle these issues properly and accurately. First and foremost in D&amp;D 5e (especially RAW) and then other RPGs and even real world, if they could be used to make estimates about the answers to these questions when we compare how similar cases translate to D&amp;D 5e mechanics. Does a surjective ring homomorphism have to be surjective on the unit groups? How to blur a texture node in cycles material? For a Cycles material I need to blur a texture. If the texture where a Texture Image node, I can blur the image before adding it but in my case I need to blur a Voronoi Texture and so I can't do it.  I have searched but I didn't find a blur node. Can this be achieved? I have recently noticed a huge (>3.5GB) file in the DCIM/.thumbnails folder. I have tried deleting it, but the next time I open the Camera app it rebuilds the file (and locks up the phone, sometimes displaying a "media scanning in progress" message, in the process.)  The total file size of all the (approximately 2,000) photos displayed in the Gallery is around 500MB. There are in addition around 35,000 images in folders which contain .nomedia files to instruct Android to ignore the media therein. The total file size of these is around 1.5GB. The Gallery app is correctly ignoring these images, but I wonder whether the Camera app is misbehaving and actually processing them.  I think this problem has emerged since the ICS upgrade ... either when the phone (Samsung Galaxy Note) was first updated from Gingerbread or at some later date.  Any ideas, please? He is loved.   This is something that I've always kind of wondered.  In a sentence like this, is loved a verb or an adjective? Can it be considered either? Can I install any iOS version I wish by picking and choosing which firmware to restore? I'm trying to downgrade my iPhone from the current iOS to an older one, as per .  But every time I try, I always receive this error:     The iPhone could not be restored. This device isn't eligible for the requested build.     I have tried many times with and without DFU mode. Any ideas regarding this? I was born in Brazil and came to the United States at the age of 7, in 2007. I no longer need to live in the United States because I have found success in investing and no longer depend on having a job. I am going to buy property in my home country soon, but I have just turned 18.   Will I ever be able to return to the United States to see my friends and other family members? Even if it is a 30-day visa? And, if so, in the future, am I still eligible for the EB-5 visa? Will I be barred from entry? Trying to show that $\ln(x) = \lim_{n\to\infty} n(x^{1/n} -1)$ How do I show that $\ln(x) = \lim_{n\to\infty} n (x^{1/n} - 1)$?  I ran into this identity on . I haven't been able to find any proof online and my efforts to get from $\ln(x) := \int_1^x \frac{\mathrm dt}t$ to that limit have been a failure. Powering down the display in XP with a command Is there a command to power down the display in Windows XP? That is, a command that causes the video card to stop sending a signal to the monitor until input is received, much as power management does after a time. Get a "step-by-step" evaluation in Mathematica Create database fields to an existing table when installing a module I'm new to drupal and I need some help.  I created a new module with name user_extra. Which create necessery table when Installing the module.  But I also need to insert some database field in 'users_field_data' table ('user_extra_id' and 'user_office')  In baseFieldDefinitions I wrote all necessery database table fields for user_extra table.   public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {     // Standard field, used as a unique if primary index.     $fields['id'] = BaseFieldDefinition::create('integer')         -&gt;setLabel(t('Unit ID'))         -&gt;setDescription(t('The unit ID.'))         -&gt;setReadOnly(TRUE)         -&gt;setSetting('unsigned', TRUE);      $fields['uuid'] = BaseFieldDefinition::create('uuid')         -&gt;setLabel(t('UUID'))         -&gt;setDescription(t('The unit UUID.'))         -&gt;setReadOnly(TRUE);         .         .         .     $fields['user_info'] = BaseFieldDefinition::create('string')         -&gt;setLabel(t('User Info'))         -&gt;setDescription(t("The User Info"))         -&gt;setSetting('max_length', 255)         -&gt;setDisplayOptions('form', array(           'type' =&gt; 'string_textfield',           'weight' =&gt; 10,         ))         -&gt;setDisplayConfigurable('form', TRUE);      return $fields;      }   When I install the module it inserts all values that I define in baseFieldDefinitions.  But I also need to create 'user_extra_id' and 'user_office' in 'users_field_data' table with setDisplayOptions and setDisplayConfigurable options.  This is the commenting that I made in entity file  /**  * @ContentEntityType(  *   id = "user_extra",  *   label = @Translation("user extra"),  *   handlers = {  *     "storage" = "Drupal\user_extra\UserextraStorage",  *     "storage_schema" = "Drupal\user_extra\UserextraStorageSchema",  *     "access" = "Drupal\user_extra\UserextraAccessControlHandler",  *     "list_builder" = "Drupal\user_extra\UserextraListBuilder",  *     "view_builder" = "Drupal\user_extra\UserextraViewBuilder",  *     "views_data" = "Drupal\user_extra\UserextraViewsData",  *     "form" = {  *       "default" = "Drupal\user_extra\Form\UserextraForm",  *       "add" = "Drupal\user_extra\Form\UserextraAddForm",  *       "edit" = "Drupal\user_extra\Form\UserextraEditForm",  *       "delete" = "Drupal\user_extra\Form\UserextraDeleteForm",  *     }  *   },  *   admin_permission = "administer user_extra",  *   base_table = "user_extra",  *   entity_keys = {  *     "id" = "id",  *     "label" = "name",  *     "uuid" = "uuid",  *   },  *   links = {  *     "canonical" = "/admin/user_extra/{user_extra}",  *     "add-form" = "/admin/user_extra/add",  *     "delete-form" = "/admin/user_extra/{user_extra}/delete",  *     "overview-form" = "/admin/user_extra/${user_extra}/overview",  *     "edit-form" = "/admin/user_extra/{user_extra}",  *     "collection" = "/admin/user_extra",  *     "children" = "/admin/user_extra/{user_extra}/children",  *   },  * )  */ If $a_0+\frac{a_1}{2}+\dots + \frac{a_n}{n+1}=0$ then $a_nx^n+\dots + a_0$ has a root in $[0,1]$ Let $P(x)=a_nx^n+a_{n-1}x^{n-1}+\dots +a_0$ be a real polynomial such that $a_0+\frac{a_1}{2}+\frac{a_2}{3}+\dots + \frac{a_n}{n+1}=0$.  Show that $P$ has a root in $[0,1]$. I would like proof verification and alternative proofs.  My solution:      notice that the antiderivative of $P(x)$ is $\frac{a_nx^{n+1}}{n+1}+\frac{a_{n-1}x^n}{n}+\dots + \frac{a_1x^2}{2}+a_0x+C$. From here $\int_{0}^1P(x)dx=a_0+\frac{a_1}{2}+\frac{a_2}{3}+\dots + \frac{a_n}{n+1}=0$. If $P$ had no roots then $P$ would be a strictly positive(or negative) continuous function, so its integral would be strictly positive ( or negative), a contradiction. A very quick question:   Is it correct to say "In case I won't be able to watch that"?  If it's acceptable to say that, what type of sentence is it?  UPDATE:  As a clarification, I want to say "Can you give me that in case I won't be able to have it later". Probably, it's more a supposition than a conditional. There several types of graphics files. In no particular order .jpeg .eps .pdf .png .tif .jif (and no doubt others). Some work with latex, dvips and some work with pdflatex. How am I supposed to know which?  Just to confuse matters, metapost produces .eps but I can use these with pdflatex as long as I put in a four line incantation.  Can anyone explain this? Bound for the correlation of three random variables I want to be able to pull in the error log from BIOS across a network I want to be able to pull in the error log from BIOS across a network. Looking at Win32_BIOS in MSDN I did not see anything defining the error log. Would love to do this in C# with WMI, but am open to suggestions. Is it possible?  Win32_BIOS does not have a property (don't know if that is the right term) that contains the BIOS error log. Is there a library, API, etc. that I can use to pull this information locally or from the network? Prove: $$ (a+b)^\frac{1}{n} \le a^\frac{1}{n} + b^\frac{1}{n}, \qquad \forall n \in \mathbb{N} $$ I have have tried using the triangle inequlity $ |a + b| \le |a| + |b| $,  without any success. Can't read filenames in save dialog box. Names are too faint I want to click on file to inherit the name for the file being saved. I can't read file names in the dialog box because the color is too faint. This is the same question as   That question does not have an answer but I don't have enough points to interact there so I have to post a new question.    Edited to add screen shots I tried to calibrate the monitor which no effect and did not change the readability of "unavailable" file names. I have added screenshots of previous operating systems to compare: Please tell me how Mojave is not to blame here: Is there a program that can make live USBs for any distro, iso, you get the point. I can only find ones that make live USBs for other linux distributions and none for anything else. Is this an instance of Priori Incantatem? During the climax of Fantastic Beasts and Where to Find Them, Tina briefly duels with Graves and their wands appear to lock with each other (see picture). I believe this also happens some other times in the later Harry Potter films other than Harry and Voldemort's duel in the graveyard during Goblet of Fire.    We know that this is definitely a case of Priori Incantatem for the graveyard duel in Goblet of Fire, as the wands are locked for a sufficient amount of time for past spells to begin showing themselves (significantly, showing the people Voldemort had murdered), but is this the case for the other instances of wands locking? If so, does that mean there are a lot more wands out there with shared cores, as it was my understanding this could only happen if that criteria was satisfied?