Posts

Showing posts from December 11, 2018

direclua vs. luacode*

Image
up vote 1 down vote favorite If I compile the following code with LuaLaTeX I get the word "RED" as output. The call of token.set_macro inside of luacode* seems to be noneffective. listfiles documentclass{minimal} usepackage{luacode} newcommand*foo{RED} iftrue begin{luacode*} token.set_macro('foo', 'GREEN') end{luacode*} else directlua{token.set_macro('foo', 'GREEN')} fi begin{document} foo end{document} After changing iftrue to iffalse I get "GREEN". Can anyone explain this behavior? Many thanks. luatex luacode directlua share | improve this question asked 41 mins ago ...

.ws

Image
.ws Criado em 1995 Tipo de TLD Domínio de Topo Status Ativo Criado para Entidades ligadas com a Samoa .ws é o código TLD (ccTLD) na Internet para a Samoa. O código vem de quando o país era oficialmente chamado de Samoa Ocidental ( W estern S amoa), entre 1914 até 1997. Atualmente pode ser utilizado como sinónimo de W eb S ite. [ 1 ] Referências | ↑ http://website.ws Ligações externas | Informação de .ws no site IANA v d e Domínios de topo de código de país ISO 3166-1 A  .ac .ad .ae .af .ag .ai .al .am .ao .aq .ar .as .at .au .aw .ax .az    B  .ba .bb .bd .be .bf .bg .bh .bi .bj .bm .bn .bo .br .bs .bt .bw .by .bz    C  .ca .cc .cd .cf .cg .ch .ci .ck .cl .cm .cn .co .cr .cu .cv .cw .cx .cy .cz    D  .de .dj .dk .dm .do .dz    E  .ec .ee .eg .er .es .et .eu    F  .fi .fj .fk .fm .fo .fr    G  .ga .gd .ge .gf .gg .gh .gi .gl .gm .gn .gp .gq .gr .gs .gt .gu .gw .gy    H  .hk .hm .hn .hr .ht .hu    I  .id .ie .il ...

How can state be updated with string and the update state

Image
up vote -1 down vote favorite I'm doing here is updating the state with the string which work something like the following: changeColorE(e){ this.setState({error:"style={{backgroundColor :" +this.state.colorNew +"}}"},()=>console.log("-------",this.state.error)) } In render I've const { error }=this.state; I get the error here {error} it says Parsing error: Unexpected token, expected "..." <div className="col-2" {error} onClick={this.changeColorE.bind(this)}></div> How can {error} something like that be done for an element? Am I going the right way or whats the right way? Why it doesn't work with just {error} and not {...error} ? the errorClr doesn't work i'm passing the error to it n declared const { error...